Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect a untrained class image as unknown one, when passed to query images? #11

Open
vikramreddy0307 opened this issue Aug 6, 2019 · 1 comment

Comments

@vikramreddy0307
Copy link

Hello,Could you help me how to identify a new image class, on which the model is not trained on that class in query images as unknown one?

Thanks in advance

@jakesnell
Copy link
Owner

Hi, thank you for your interest. This is not a problem handled by our paper. However, one thing you could try is to look at the distribution of base classes in the embedding space. Ideally, all the training examples will cluster around a single prototype per class. So you could compute a prototype for each base class as the mean of the corresponding examples in the train set. Then, if you want to detect a novel class, you can compute the distance to each of the base prototypes. If the distance exceeds a threshold, you could conclude it's a new class. If you want a probabilistic interpretation, you can imagine a mixture of Gaussian model in the latent space with one Gaussian per base class. If the query example has low likelihood under this density model, then it's likely a novel class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants