Ironman
Ironman

Reputation: 68

How can I solve this problem in vs code (ipynb)?

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. enter image description here

Upvotes: 1

Views: 111

Answers (1)

Kenneth Githambo
Kenneth Githambo

Reputation: 177

try this,

PATH = "/Users/reblochonMasque/Documents/Drawings/"
Image(filename = PATH + "My_picture.jpg", width=100, height=100)

Upvotes: 1

Related Questions