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

Request for enhancement #22

Open
shirishr opened this issue Jul 25, 2017 · 0 comments
Open

Request for enhancement #22

shirishr opened this issue Jul 25, 2017 · 0 comments
Assignees

Comments

@shirishr
Copy link

Please answer the questions before you submit your issue.

  • backend = TensorFlow 1.2.1

  • Python version = 3.5

  • Keras version = 2.0.6

Whe I request a prediction for a batch of 10 images like:

python predict.py --path "data/sorted/test/5/" --model=resnet50 --batch_size=10

I get a response like:
| should be image_07165.jpg (data/sorted/test/5) -> predicted as 47.0 (5)
| should be image_07169.jpg (data/sorted/test/5) -> predicted as 47.0 (5)
| should be image_07178.jpg (data/sorted/test/5) -> predicted as 47.0 (5)
| should be image_07191.jpg (data/sorted/test/5) -> predicted as 76.0 (76)
| should be image_07192.jpg (data/sorted/test/5) -> predicted as 47.0 (5)
| should be image_07194.jpg (data/sorted/test/5) -> predicted as 23.0 (28)
| should be image_07195.jpg (data/sorted/test/5) -> predicted as 28.0 (32)
| should be image_08105.jpg (data/sorted/test/5) -> predicted as 28.0 (32)
| should be image_08108.jpg (data/sorted/test/5) -> predicted as 47.0 (5)
| should be image_08109.jpg (data/sorted/test/5) -> predicted as 69.0 (7)

Can this response be more meaningful as:

image_07165.jpg (data/sorted/test/5) -> predicted with 47.0% confidence that it is category 5 (Tiger Lilly)
image_07191.jpg (data/sorted/test/5) -> predicted with 76.0 % confidence that it is category 76 (passion flower)
image_07194.jpg (data/sorted/test/5) -> predicted with 23.0 % confidence that it is category 28(love in the mist)
image_07195.jpg (data/sorted/test/5) -> predicted with 28.0 % confidence that it is category 32(bird of paradise)

Thank you

@Arsey Arsey self-assigned this Aug 3, 2017
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