August 2017
Intermediate to advanced
288 pages
8h 6m
English
The current part of the recipe will provide a step-by-step guide to prepare the dataset for the Inception-BN pretrained model.
# Load packages
require(imager)
source("download_cifar_data.R")
The download_cifar_data consists of function to download and read CIFAR10 dataset.
# Read Dataset and labels
DATA_PATH<-paste(SOURCE_PATH, "/Chapter 4/data/cifar-10-batches-bin/", sep="")
labels <- read.table(paste(DATA_PATH, "batches.meta.txt", sep=""))
cifar_train <- read.cifar.data(filenames = c("data_batch_1.bin","data_batch_2.bin","data_batch_3.bin","data_batch_4.bin"))