Use the ROI pooled features from Faster RCNN

Hi,

I want to create an ensemble of object detectors. In this task, I want to get the ROI pooled features from Faster RCNN, specifically model.roi_heads.box_roi_pool. How do you go about that?

Ensemble will happen in a way that I can derive some loss using the ROI pooled features, from another task.

Apologies for the beginner question.