From 9f6d2aced6377a98ffa14876c4996c58297111c1 Mon Sep 17 00:00:00 2001 From: lucile <lucile.audard@ecl20.ec-lyon.fr> Date: Tue, 7 Nov 2023 13:53:05 +0100 Subject: [PATCH] Update read_cifar.py --- read_cifar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read_cifar.py b/read_cifar.py index 3d2709e..9e2a47d 100644 --- a/read_cifar.py +++ b/read_cifar.py @@ -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])) -- GitLab