Getting and previewing the dataset

This time, our dataset will consist of a raw images stored on a disk. After downloading the images, I would suggest extracting them to a data folder called Hand-on-Computer-Vision-with-Julia on your machine.

Let's get an understanding of the dataset by loading and previewing some of the images. If you have extracted both archives, your images should be located in the data/train and data/test folders. Every image has a prefix, cat or dog, corresponding to a class followed by a digit corresponding to a sequential number. This is shown in the following code:

using Images, ImageView, MXNetIMAGES_PATH = "data/train"single_img = joinpath(IMAGES_PATH, "cat.1.jpg")size(single_img)imshow(single_img)

This will give ...

Get Hands-On Computer Vision with Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.