The problem of sample_uff_ssd on Xavier

../data/ssd/sample_ssd_relu6.uff
Begin parsing model...
End parsing model...
Begin building engine...
End building engine...
 Num batches  2
 Data Size  540000
*** deserializing
Time taken for inference is 97.5053 ms.
 KeepCount 100
Detected dog in the image 0 (../data/ssd/dog.ppm) with confidence 89.000961% and coordinates (81.756760,23.115528),(295.040741,298.620392).
Result stored in dog-0.890010.ppm.
sample_uff_ssd: ../common/common.h:459: void samplesCommon::writePPMFileWithBBox(const string&, samplesCommon::PPM<C, H, W>&, const samplesCommon::BBox&) [with int C = 3; int H = 300; int W = 300; std::__cxx11::string = std::__cxx11::basic_string<char>]: Assertion `!outfile.fail()' failed.
Aborted (core dumped)

Moving to the Xavier forum for assistance.

Hi,

Just check the sample ‘sample_uff_ssd’ on our environment and it can work correctly without error.

../data/ssd/sample_ssd_relu6.uff
Begin parsing model...
End parsing model...
Begin building engine...
End building engine...
 Num batches  2
 Data Size  540000
*** deserializing
Time taken for inference is 81.4224 ms.
 KeepCount 100
Detected dog in the image 0 (../data/ssd/dog.ppm) with confidence 89.000977% and coordinates (81.756760,23.115528),(295.040741,298.620392).
Result stored in dog-0.890010.ppm.
Detected dog in the image 0 (../data/ssd/dog.ppm) with confidence 88.068115% and coordinates (1.392674,0.000000),(118.431145,237.261627).
Result stored in dog-0.880681.ppm.
Detected truck in the image 1 (../data/ssd/bus.ppm) with confidence 78.202805% and coordinates (1.603237,122.436134),(249.702103,245.255875).
Result stored in truck-0.782028.ppm.
Detected car in the image 1 (../data/ssd/bus.ppm) with confidence 67.151794% and coordinates (172.227661,83.781929),(193.697495,96.521187).
Result stored in car-0.671518.ppm.
Detected person in the image 1 (../data/ssd/bus.ppm) with confidence 54.910706% and coordinates (279.032410,162.466843),(298.311951,255.231293).
Result stored in person-0.549107.ppm.

Have you followed the README.txt located at ‘${tensorrt}/samples/sampleUffSSD’ to generate the uff file?
If yes, could you share your uff file with us?

Thanks.

Hi,

I also got the same error.

Followed README.txt to generate uff file on the host --> copied the uff file & label file to the target (Jetson Xavier) --> ran the sample_uff_ssd --> error

Any help is appreciated.

/Emily

Hi again,

I figured out what went wrong. I was running the sample under /usr/src which requires the write privileges to edit the files in the data folder. So if I run the sample with root privilege, no error happens.