Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Computer Vision with Julia

You're reading from   Hands-On Computer Vision with Julia Build complex applications with advanced Julia packages for image processing, neural networks, and Artificial Intelligence

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781788998796
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dmitrijs Cudihins Dmitrijs Cudihins
Author Profile Icon Dmitrijs Cudihins
Dmitrijs Cudihins
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with JuliaImages 2. Image Enhancement FREE CHAPTER 3. Image Adjustment 4. Image Segmentation 5. Image Representation 6. Introduction to Neural Networks 7. Using Pre-Trained Neural Networks 8. OpenCV 9. Assessments
10. Other Books You May Enjoy

Multiclass classification with the CIFAR-10 dataset

The CIFAR-10 dataset consists of 60,000 32x32 colorful images in 10 classes, with 6,000 images per class. There are 50,000 training images and 10,000 test images.

Getting and previewing the dataset

Similar to the preceding example, we will use the MLDatasets package to retrieve the CIFAR10 dataset. Let's start by loading the package and having a quick look at the data:

using Images, ImageView, MLDatasets, MXNet

train_x, train_y = CIFAR10.traindata()
test_x, test_y = CIFAR10.testdata()
size(train_x)
# Main> (32, 32, 3, 50000)

size(train_y)
# Main> (50000,)

join(unique(train_y), ", ")
# Main> "6, 9, 4, 1, 2, 7, 8, 3, 5, 0"

We have used the size function...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image