The required image, label and train files are not present in the tensor rt sample code data directory

Hi all, I tried executing the sample.py file from the directory
/usr/src/tensorrt/samples/python/int8_caffe_mnist/
python3.6 sample.py -d /usr/src/tensorrt/data
But it says that below files are not present
“t10k-images-idx3-ubyte”, “t10k-labels-idx1-ubyte”, “train-images-idx3-ubyte”,

These files are not present in the data directory
/usr/src/tensorrt/data and /usr/src/tensorrt/data/mnist

May I know how to get these files. Please go through the below trace logs of the execution of sample.py

Traceback (most recent call last):
File “sample.py”, line 107, in
main()
File “sample.py”, line 92, in main
_, data_files = common.find_sample_data(description=“Runs a Caffe MNIST network in Int8 mode”, subfolder=“mnist”, find_files=[“t10k-images-idx3-ubyte”, “t10k-labels-idx1-ubyte”, “train-images-idx3-ubyte”, ModelData.DEPLOY_PATH, ModelData.MODEL_PATH], err_msg=“Please follow the README to download the MNIST dataset”)
File “/usr/src/tensorrt/samples/python/int8_caffe_mnist/…/common.py”, line 74, in find_sample_data
return data_paths, locate_files(data_paths, find_files, err_msg)
File “/usr/src/tensorrt/samples/python/int8_caffe_mnist/…/common.py”, line 103, in locate_files
raise FileNotFoundError(“Could not find {:}. Searched in data paths: {:}\n{:}”.format(filename, data_paths, err_msg))
FileNotFoundError: Could not find t10k-images-idx3-ubyte. Searched in data paths: [‘/usr/src/tensorrt/data/mnist’, ‘/usr/src/tensorrt/data/mnist’]
Please follow the README to download the MNIST dataset

Thanks and Regards

Nagaraj Trivedi

I have corrected these posts that these files are for which it is throwing error as not found
t10k-images-idx3-ubyte
t10k-images-idx1-ubyte
They are not present in the directory /usr/src/tensorrt/data/mnist
Let me know how to download them.

Thanks and Regards

Nagaraj Trivedi

Hi all, I have found a solution for it. I have accessed the link given in the README.md in which the link for MNIST data set is given
http://yann.lecun.com/exdb/mnist/
From this link I got other two links for t10k images
http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz

I have downloaded it from those two links and it worked.
I request you to close this issue.

Thanks and Regards
Nagaraj Trivedi

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.