CIFAR - 10 dataset kaggle

조회 수: 5 (최근 30일)
Muhammad Zohaib Jan
Muhammad Zohaib Jan 2019년 7월 12일
댓글: Muhammad Zohaib Jan 2019년 7월 12일
How can I read CIFAR-10 dataset from Kaggle. I want to test my CNN with kaggle dataset. They have a folder with all images named from 1 to 50000, and a separate CSV file with labels. Same for test but no label file. I did use the imageDatastore to read the folder but how can I provide the labels ?
Please help
  댓글 수: 2
KSSV
KSSV 2019년 7월 12일
REad bout the function...you need to provide labels in a csv file. There is an option to provide labels.
Muhammad Zohaib Jan
Muhammad Zohaib Jan 2019년 7월 12일
I did. It has an option of labelsource but that does not take a csv file as input. Sorry if its a newb question I just started working with images

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 7월 12일
When you use imageDataStore, use 'labelsource', 'none' . But after you create the object, set its Labels property to a cell array of character vectors (or to a string() array) of data that you read in from the csv .
  댓글 수: 1
Muhammad Zohaib Jan
Muhammad Zohaib Jan 2019년 7월 12일
Worked beutifully, thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by