How can I get the object feature vectors from Pytorch Faster-RCNN

Hi, I am wondering how can I get the detected object features from the model Faster-RCNN?
For example, for example, in an image that detects 48 boxes, 1000 feature vectors are extracted from the “fc6” layer for all proposal regions. How can I get the vector corresponding to the detected objects?
Thanks and Regards