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"?