MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / Cifar10

Class Cifar10

tensorpack/dataflow/dataset/cifar.py:170–182  ·  view source on GitHub ↗

Produces [image, label] in Cifar10 dataset, image is 32x32x3 in the range [0,255]. label is an int.

Source from the content-addressed store, hash-verified

168
169
170class Cifar10(CifarBase):
171 """
172 Produces [image, label] in Cifar10 dataset,
173 image is 32x32x3 in the range [0,255].
174 label is an int.
175 """
176 def __init__(self, train_or_test, shuffle=None, dir=None):
177 """
178 Args:
179 train_or_test (str): either 'train' or 'test'.
180 shuffle (bool): shuffle the dataset, default to shuffle in training
181 """
182 super(Cifar10, self).__init__(train_or_test, shuffle, dir, 10)
183
184
185class Cifar100(CifarBase):

Callers 1

cifar.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…