Hi,
I am using the sample of faster rcnn and I want to forward different resolution of images in one context.
IRuntime* runtime = createInferRuntime(gLogger);
ICudaEngine* engine = runtime->deserializeCudaEngine(gieModelStream->data(), gieModelStream->size(), &pluginFactory);
IExecutionContext *context = engine->createExecutionContext();
// for each image, do inference with the context
However, the input dims specified in prototxt is fixed (e.g., 1 * 3 * 375 * 500).
If the resolution of the image is different with the input dims, then the program
will failed.
when using caffe, I can reshape the input layer before forwarding.
I am not sure how to do this in TensorRT.
thanks.