Issue
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.
Solution
try this,
PATH = "/Users/reblochonMasque/Documents/Drawings/"
Image(filename = PATH + "My_picture.jpg", width=100, height=100)
Answered By - Kenneth Githambo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.