Assertion '!outfile.fail()' failed while the inference of Faster R-CNN using tensorRT2.0 on TX2

while i am trying inference of faster R-CNN using tensorRT2.0 on jetson TX2,i met this error

./deviceQuerysample_fasterRCNN: sampleFasterRCNN.cpp:121: void writePPMFileWithBBox(const string&, PPM, BBox): Assertion `!outfile.fail()’ failed.
Aborted (core dumped)

can anyone help me in it?
thanks in advance

We created a new “Deep Learning Training and Inference” section in Devtalk to improve the experience for deep learning and accelerated computing, and HPC users:
https://devtalk.nvidia.com/default/board/301/deep-learning-training-and-inference-/

We are moving active deep learning threads to the new section.

URLs for topics will not change with the re-categorization. So your bookmarks and links will continue to work as earlier.

-Siddharth

Can you make sure that your running this on a platform where you have write privileges, it looks like the output file cannot be written to the device.