I have use tensorRT to accelerate my MTCNN. before the PNet I have to preprocess to build image pyramid, such as 768432, 480270 … , so I have build multi prototxt file and send to tensorRT to parse to fit every scale image ? Because the PNet is a FCN network, so it can support evety scale image to it, in caffe, I can just set
input_layer->Reshape(1, num_channels_, img.rows, img.cols);
But in tensorRT, it seems a network has a certain dim when it parse it.