I have a dataset of 20k images of infected mango. I have built a web-based app using Flask, where a user can upload a picture, and my CNN model detects the disease. I have 6 classes in the model, which correspond to 6 types of diseases.

My question is: how do I train the model so that, if a user uploads any picture except infected mango, the model will show "not mango"?

  • $\begingroup$ Do you mean exactly "if an user uploads any picture except an infected mango" or "if an user uploads any picture except a mango"? $\endgroup$ – NikoNyrh May 25 at 12:13
  • $\begingroup$ "any picture except a mango" @NikoNyrh $\endgroup$ – Tahmeed May 31 at 11:49
  • $\begingroup$ We had similar questions in the past. You can check them here, here, here and here. $\endgroup$ – nbro Jun 4 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.