Description
I am trying to build a simple CNN model using libtorch, I am following the tutorial : https://github.com/pytorch/examples/tree/master/cpp/dcgan
I got this error :
hazim@hazim-virtual-machine:~/Documents/dcgan/build$ ./dcgan
terminate called after throwing an instance of 'c10::Error'
what(): Error opening images file at /home/hazim/Downloads/MNIST_DATASET/MNIST_DATASET/train-images-idx3-ubyte
Exception raised from read_images at ../torch/csrc/api/src/data/datasets/mnist.cpp:66 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) + 0x69 (0x7f33c5145b89 in /home/hazim/Documents/dcgan/libtorch/lib/libc10.so)
frame #1: + 0x337429c (0x7f33b7aaf29c in /home/hazim/Documents/dcgan/libtorch/lib/libtorch_cpu.so)
frame #2: torch::data::datasets::MNIST::MNIST(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, torch::data::datasets::MNIST::Mode) + 0x46 (0x7f33b7ab0e06 in /home/hazim/Documents/dcgan/libtorch/lib/libtorch_cpu.so)
frame #3: main + 0x7a2 (0x4c0fab in ./dcgan)
frame #4: __libc_start_main + 0xf0 (0x7f33b366e840 in /lib/x86_64-linux-gnu/libc.so.6)
frame #5: _start + 0x29 (0x4bf7d9 in ./dcgan)
Aborted (core dumped)
I hope someone can help me with this error