Good morning sir, the model I used is about 96% accurate on training accuracy and 98% on validation accuracy, but out of 10 pictures I tested with using FAST API, only 1 was correct, pls how do I correct this? secondly, how do I make an endpoint where all I need to do is upload images, train the model, and download the model in any supported format like savedmodel, json or tensorflowjs. e.g (https://teachablemachine.withgoogle.com/train) without returning to jupyter notebook for retraining everytime?
Regarding your first question: by any chance, in production, do you feed different samples than from your training and validation datasets? Is preprocessing in your production pipeline done in exactly the same way? It sounds like a distribution issue.