fix downloading and verification of first files
this code would've worked if the first element of `names` were the prefix i.e. if it acted on `meta` instead of `names`. pretty embarassing!
This commit is contained in:
parent
c83a306cbe
commit
0aee9edce6
|
@ -160,7 +160,7 @@ def prepare(dataset="mnist", return_floats=True, return_onehot=True,
|
||||||
prefix, names = meta[0], meta[1:]
|
prefix, names = meta[0], meta[1:]
|
||||||
names = [os.path.join(prefix, name) for name in names]
|
names = [os.path.join(prefix, name) for name in names]
|
||||||
train_images, train_labels, test_images, test_labels = names
|
train_images, train_labels, test_images, test_labels = names
|
||||||
images_and_labels = names[1:]
|
images_and_labels = names
|
||||||
|
|
||||||
logger.debug("Filenames chosen for %s: %s, %s, %s, %s",
|
logger.debug("Filenames chosen for %s: %s, %s, %s, %s",
|
||||||
dataset, train_images, train_labels, test_images, test_labels)
|
dataset, train_images, train_labels, test_images, test_labels)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user