Hi,
I am facing some troubles for converting FRCNN model to int8 engine.
config->setFlag(BuilderFlag::kINT8);
builder->setInt8Mode(true);
nvinfer1::Dims dims{4, {8, 3, 600, 1000}, {}};
BatchStream calibrationStream(8,8,dims,"./data/calibraton/frcnn/list_images.txt", dataDirs);
calibrator.reset(new Int8EntropyCalibrator2<BatchStream>(
calibrationStream, 0, "frcnn", "data"));
config->setInt8Calibrator(calibrator.get());
I am using the above code for setting up the calibrator for INT8.
But I am getting the following logs :
Calibrating with file 0041.ppm
Calibrating with file 0052.ppm
Calibrating with file 0030.ppm
Calibrating with file 0079.ppm
Calibrating with file 0051.ppm
Calibrating with file 0088.ppm
Calibrating with file 0012.ppm
Calibrating with file 0038.ppm
[08/10/2020-13:35:38] [E] [TRT] …/builder/cudnnCalibrator.cpp (724) - Cuda Error in add: 719 (unspecified launch failure)
[08/10/2020-13:35:38] [E] [TRT] …/builder/cudnnCalibrator.cpp (724) - Cuda Error in add: 719 (unspecified launch failure)
[08/10/2020-13:35:38] [E] [TRT] FAILED_ALLOCATION: std::exception
[08/10/2020-13:35:38] [E] [TRT] …/rtSafe/cuda/caskConvolutionRunner.cpp (317) - Cuda Error in allocateContextResources: 719 (unspecified launch failure)
[08/10/2020-13:35:38] [E] [TRT] FAILED_EXECUTION: std::exception
[08/10/2020-13:35:38] [E] [TRT] …/rtSafe/safeRuntime.cpp (32) - Cuda Error in free: 719 (unspecified launch failure)
terminate called after throwing an instance of ‘nvinfer1::CudaError’
I know I am missing something or making a mistake. The error is thrown after the getbatch function of Int8EntropyCalibrator2 has been called.
- What does this error mean ?
- Also, FRCNN has multiple inputs and outputs. But the calibrator needed only one input blob name. I provided “data” and skipped “im_info”. Is that correct ?
- Does calibration process require labels ?
Thanks in advance.