Guest User

Untitled

a guest
Apr 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import sys
  2.  
  3. # Add directory holding utility functions to path to allow importing utility funcitons
  4. sys.path.append('/kaggle/input/python-utility-code-for-deep-learning-exercises/utils')
  5. from decode_predictions import decode_predictions
  6.  
  7. from IPython.display import Image, display
  8.  
  9. most_likely_labels = decode_predictions(my_preds, top=3, class_list_path='../input/resnet50/imagenet_class_index.json')
  10. for i, img_path in enumerate(image_paths):
  11. display(Image(img_path))
  12. print(most_likely_labels[i])
Add Comment
Please, Sign In to add comment