Some users (#12, #13) seem to be experiencing issues due to a mismatch between the default file name and the actual file name. I also had the same problem, and it was caused by reading a directory(train-images-idx3-ubyte) as a file. It does not matter when downloading data using the source code, but the current setting can be confusing for users who download data files manually.
current default file name: train-images-idx3-ubyte
actual .gz file structure: train-images-idx3-ubyte.gz/train-images.idx3-ubyte
Some users (#12, #13) seem to be experiencing issues due to a mismatch between the default file name and the actual file name. I also had the same problem, and it was caused by reading a directory(train-images-idx3-ubyte) as a file. It does not matter when downloading data using the source code, but the current setting can be confusing for users who download data files manually.
current default file name: train-images-idx3-ubyte actual .gz file structure: train-images-idx3-ubyte.gz/train-images.idx3-ubyte