detecto icon indicating copy to clipboard operation
detecto copied to clipboard

Model predicts irrelevant images as correct prediction

Open thangaraj535 opened this issue 3 years ago • 2 comments

WhatsApp Image 2022-01-09 at 8 26 06 PM WhatsApp Image 2022-01-09 at 8 23 11 PM WhatsApp Image 2022-01-09 at 8 22 24 PM WhatsApp Image 2022-01-06 at 10 06 54 PM WhatsApp Image 2022-01-06 at 10 04 58 PM WhatsApp Image 2022-01-09 at 8 28 30 PM WhatsApp Image 2022-01-09 at 8 27 12 PM

I have trained a custom model to predict diseases on crops leaf, while testing the model after training it is predicting a car image as disease spot with the accuracy of 99%. Kindly provide the solution for this as soon as possible. I have also attached the actual predicted image

download download (1)

thangaraj535 avatar Jan 11 '22 10:01 thangaraj535

@alankbi Can you please look into this issue?

thangaraj535 avatar Jan 11 '22 16:01 thangaraj535

It looks like your model might be overfitted or basically just producing too many false positives. What does your training dataset look like? It might be worth going back and trying to make sure you have a wide and varied range of images to train on - I think it'd also help if several of the target objects are smaller/don't take up the whole image, that way the model doesn't learn to just predict the entire image to be a bacterial spot every time.

alankbi avatar Feb 01 '22 22:02 alankbi