Reputation: 65
I use CNN to do image recognition for twenty classes of images. I also want CNN to tell me when the image is not belong to any one of these twenty classes. Softmax can only give me the answer of one of these twenty classes. Is there any way to solve the problem?
Upvotes: 0
Views: 113
Reputation: 1056
You should create a "negative class" of random objects that are not your 20 classes. Training on negative data should increase accuracy and generalization because it can help the network figure out the object from a background
Upvotes: 1