Skip to content
Snippets Groups Projects
Commit 9f6d2ace authored by Audard Lucile's avatar Audard Lucile
Browse files

Update read_cifar.py

parent 72bb7ee1
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ def read_cifar_batch(path):
return np.float32(data), np.int64(labels)
def read_cifar(folder_path):
data, labels = read_cifar_batch("./data/cifar-10-python.tar/cifar-10-batches-py~/cifar-10-batches-py/test_batch")
data, labels = read_cifar_batch("./data/cifar-10-batches-py/test_batch")
for i in range(1,5):
data = np.concatenate((data, read_cifar_batch(folder_path + "/data_batch_" + str(i))[0]))
labels = np.concatenate((labels, read_cifar_batch(folder_path + "/data_batch_" + str(i))[1]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment