Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Correct shapes of images in cifar10 and cifar100 #13348

Merged
merged 2 commits into from
Nov 26, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/mxnet/gluon/data/vision/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __init__(self, root=os.path.join(base.data_dir(), 'datasets', 'fashion-mnist
class CIFAR10(dataset._DownloadedDataset):
"""CIFAR10 image classification dataset from https://www.cs.toronto.edu/~kriz/cifar.html

Each sample is an image (in 3D NDArray) with shape (32, 32, 1).
Each sample is an image (in 3D NDArray) with shape (32, 32, 3).

Parameters
----------
Expand Down Expand Up @@ -190,7 +190,7 @@ def _get_data(self):
class CIFAR100(CIFAR10):
"""CIFAR100 image classification dataset from https://www.cs.toronto.edu/~kriz/cifar.html

Each sample is an image (in 3D NDArray) with shape (32, 32, 1).
Each sample is an image (in 3D NDArray) with shape (32, 32, 3).

Parameters
----------
Expand Down