Bug / "Feature" in sampleUffSSD

in File BatchStreamPPM.h in sampleUffSSD, lines 99 - 104:

if(file)
{
    std::cout  << "Batch #" << mFileCount << "\n";
    file.seekg(((mBatchCount * mBatchSize))*7);
}

This is used to navigate list.txt for INT8 calibration. What it means is that only files with name length 5 are allowed (line 4).

My simple fix was to introduce a local variable tracking the list, initialize it to 0 and update it every iteration:

if(file)
{
    std::cout  << "Batch #" << mFileCount << "\n";
    file.seekg(mCurPos);
}

.....
mCurPos = file.tellg();

Hello,

Thank you for the feedback. I’ll communicate it to the engineering team.

regards,
NVES