Guest User

Untitled

a guest
Nov 14th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. img_id = 1991
  2. dog_generator = train_datagen.flow(train_imgs[img_id:img_id+1], train_labels[img_id:img_id+1],
  3. batch_size=1)
  4. dog = [next(dog_generator) for i in range(0,5)]
  5. fig, ax = plt.subplots(1,5, figsize=(15, 6))
  6. print('Labels:', [item[1][0] for item in dog])
  7. l = [ax[i].imshow(dog[i][0][0]) for i in range(0,5)]
Add Comment
Please, Sign In to add comment