how to set scale in nvinfer plugin?

Hi,

I want to resize frame buffer in nvinfer plugin, such as (1920, 1080) -> (640, 360) to accelerate inference speed. and I can get the detect box, and source frame(because when I do resize in streammuxer plugin, I can’t get the source buffer(1920x1080) anymore, when I crop the object from resize frame(640x360), the object would be indistinct. So I want to crop it from source frame).

Thanks.

If you do resize in streammux, these resized frame buffers are the original buffers for all modules at the following and source buffer (1920x1080) can’t be got any more.
You can keep source resolution in streammux.