Could not find 0.pgm in data directories:
Hi @sbbug ,
Please elaborate on your issue. Which sample did you experience this in? Did you download the dataset before running the sample? Did you pass in the right path to the dataset when running the sample?
Hi, I think after downloading data, you need to run _generate_pgms.py_ in order to extract _pgms_ from your data.
Closing - Reopen if you are still having a problem.
Hi @wavesCHJ,
I'm not at a computer to look into it for TRT7 as I'm on holiday - it may have been missed. But if you need it now, I think you can copy it out of one of the earlier releases, you could do that easily with a docker container from NGC. Something like this:
$ nvidia-docker run -it -v ${PWD}:/mnt nvcr.io/nvidia/tensorrt:19.10-py3
$ cp /opt/tensorrt/samples/data/mnist/generate_pgms.py /mnt
$ exit
# Now the file should be in your current directory
The path may not be totally right, just guessing off the top of my head in case you're in a hurry.
If you don't have docker setup you could also just download the release tar.gz and get it similarly.
Answer in other thread: https://github.com/NVIDIA/TensorRT/issues/256#issuecomment-568382745
Most helpful comment
Hi, I think after downloading data, you need to run _generate_pgms.py_ in order to extract _pgms_ from your data.