Closed ghost closed 1 year ago
Sorry for taking up time by a maybe simple solution for my problem (or not). Idk how much time you have but maybe you would consider a paid helping. Like 50euro for an hour looking if you could fix my problem. Or just throwing ideas for a solution because ideally i would like to know myself what to do
First, I recommend trying pj_tensorrt_cls_mobilenet_v2
with USE_INT8_WITH_CALIBRATION
enabled. So that you can see working INT8 calibration. Then, you can find out differences between pj_tensorrt_cls_mobilenet_v2
and your code/settings.
This issue was closed because it has been inactive.
Environment (Hardware)
Cuda 11.3 Cudnn 8.4 TensorRT 8.4
Project Name
Int8 calibration
Issue Details
When i set all the important parameters for Calibration like following:
and use all the preparation steps for the calibration it doesnt work. First of all i used 2430 images for calibration which i put into the directly ppmSamples and the list is also filled with the image names without the file extension. When compiling the programm i get following console output and i cant figure out what im doing wrong or if there maybe is a bug. All images have the width and height of 256 like in the defines and i checked a few times already if the list.txt has anything weird in it and checked with a script if any file or list item is missing but nothing. Also tried out alot different batch sizes but nothing works
The output is: Could not find 0000005 .ppm in data directories: ppmSamples and the program is right there is no 0000005 .ppm file because i named them from 0-2430ppm and inside the list.txt is also no 0000005 which gives me the idea that my naming approach is wrong in general. Thought your images are just randomly named inside the samples folder. Is there any naming routine i can follow in order to get it to work? My file naming approach is already snake case because there are no capital letters or spaces just numbers
Another update: I just tried naming my files exactly like you do it by adding the 0's so i made a script to always get to 12 character for the filename and i still count to 2430 (my total image count) but before the number im adding 0's to always get to a filename length of 12 chars. so my first image name is: 000000000000.ppm and my last one is 000000002430.ppm The programm still tries to find files that arent even specified inside the list.txt or in the ppmSample folder i defined
Error Log