Add TKDNN_CALIB_IMG_PATH and TKDNN_CALIB_LABRL_PATH variable
This commit adds two variables for the calibration dataset. The first is reffered to .txt file that contains the list of the absolute paths of the images for the INT8 calitration. The second is referred to .txt file that contains the list of the absolute paths of the labels of the same images above. Signed-off-by: Davide Sapienza <sapienza.dav@gmail.com>
This commit is contained in:
+1
-2
@@ -73,8 +73,7 @@ NetworkRT::NetworkRT(Network *net, const char *name) {
|
||||
// builderRT->setInt8Mode(true);
|
||||
configRT->setFlag(BuilderFlag::kINT8);
|
||||
BatchStream calibrationStream(dim, 1, 100, //TODO: check if 100 images are sufficient to the calibration (or 4951)
|
||||
"/home/xavier/Documents/tkDNN/demo/COCO_val2017/all_images.txt",
|
||||
"/home/xavier/Documents/tkDNN/demo/COCO_val2017/all_labels.txt");
|
||||
net->fileImgList, net->fileLabelList);
|
||||
std::string modelName = name;
|
||||
calibrator.reset(new Int8EntropyCalibrator(calibrationStream, 1,
|
||||
"./" + modelName.substr(0, modelName.find('.')) + "-calibration.table",
|
||||
|
||||
Reference in New Issue
Block a user