Tensorrt: Could not find 0.pgm in data directories:

Created on 17 Oct 2019  路  5Comments  路  Source: NVIDIA/TensorRT

Could not find 0.pgm in data directories:

Samples

Most helpful comment

Hi, I think after downloading data, you need to run _generate_pgms.py_ in order to extract _pgms_ from your data.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlphaJia picture AlphaJia  路  3Comments

prathik-naidu picture prathik-naidu  路  3Comments

mhansinger picture mhansinger  路  4Comments

dhkim0225 picture dhkim0225  路  6Comments

float123 picture float123  路  6Comments