Training Just the RPN network in FasterRCNN

Hello all,
I Just want to train the region proposal network and extract the part of the image from the proposed bounding boxes and do not want the classes of the objects in the proposed regions.
Could someone please guide me on how this could be done.
TIA