Request for enhancement
shirishr opened this issue · 0 comments
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