a guest Apr 25th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def display_image(index):
- plt.imshow(images[index].T, cmap = "binary", origin='lower', extent = [0, img_size, 0, img_size])
- for box in bounding_boxes[index]:
- plt.gca().add_patch(Rectangle((box, box), box, box, ec = 'r', fc = 'none'))
- display_image(np.random.randint(0, n_images))
RAW Paste Data