【发布时间】:2021-08-03 08:56:33
【问题描述】:
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()
【问题讨论】:
-
你试过使用 skimage、PIL 或 opencv 吗?
-
是的。我已经使用过 skimage,PIL。它可以工作,但这种方式也有效。所以我认为另一个问题。
标签: python python-3.x jupyter-notebook runtime-error ipython