Reputation: 68
import os
image, label = load(os.path.join(PATH, 'train/cat/cat.100.jpg'), 0)
# casting to int for matplotlib to show the image
plt.figure()
plt.title(label)
plt.imshow(image/255.0)
plt.show()
When I run this, there is no error. But it shows as indefinitely in progress.
Upvotes: 1
Views: 111
Reputation: 177
try this,
PATH = "/Users/reblochonMasque/Documents/Drawings/"
Image(filename = PATH + "My_picture.jpg", width=100, height=100)
Upvotes: 1