sing your own images.
🤗 Datasets uses the Image feature to automatically decode the image data and load it as a PIL.Image which we can visualize:


	Copied
>>> import matplotlib.pyplot as plt

>>> fig, axs = plt.subplots(1, 4, figsize=(16, 4))
>>> for i, image in enumerate(dataset[:4]["image"]):
...     axs[i].imshow(image)
...     axs[i].set_axis_off()
>>> fig.show()

The images are all different sizes though, so you’ll need to preprocess them