pytorch-cpp
pytorch-cpp copied to clipboard
Error in loading MNIST dataset, convolutional_neural_network
Hi, I am unable to read the images in the MNIST dataset. below I have listed the error that I am receiving. Can you please help me with it. Thanks
: ~/Projects/cnn/build$ ./cnn
Convolutional Neural Network
CUDA available. Training on GPU.
terminate called after throwing an instance of 'c10::Error'
what(): Error opening images file at ../../../../data/mnist/train-images-idx3-ubyte
Exception raised from read_images at ../torch/csrc/api/src/data/datasets/mnist.cpp:67 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits
Aborted (core dumped)
@Paras-97 did you run cmake -B build -D DOWNLOAD_DATASETS=ON - this will download the dataset
right now the line:
what(): Error opening images file at ../../../../data/mnist/train-images-idx3-ubyte
indicates that dataset isn't available, so while reading this is throwing an error
Also, please go through this section in detail
@Paras-97 can you confirm?
Closing this issue as no further comment