Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

ImageClassifier Predict Label #84

Closed
aribornstein opened this issue Feb 8, 2021 · 4 comments
Closed

ImageClassifier Predict Label #84

aribornstein opened this issue Feb 8, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed won't fix This will not be worked on

Comments

@aribornstein
Copy link
Contributor

aribornstein commented Feb 8, 2021

🚀 Feature

Prediction Currently Returns the class index based on the folder position in train. It would be great to be able to able to see the targets.

Motivation

It's hard to interpret class id numbers when you have more than a few classes.
model.predict(["cat.png"], target=true)
output -> 1

What does one mean?

Pitch

model.predict(["cat.png"], target=true)
output ->cat

Alternatives

Open to discussion

Additional context

@aribornstein aribornstein added enhancement New feature or request help wanted Extra attention is needed labels Feb 8, 2021
@ibraheemmmoosa
Copy link
Contributor

Another alternative can be to have an easy API to convert between ID and class label. The ID is important if you want your output to be numerical.

@aribornstein
Copy link
Contributor Author

Adding to this,a way to get the prediction class distribution.

@stale
Copy link

stale bot commented Apr 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the won't fix This will not be worked on label Apr 18, 2021
@ethanwharris
Copy link
Collaborator

Fixed by #229 - can now use model.serializer = Labels() or model.serializer = Probabilities(), for other options see the predictions docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed won't fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants