Extract features from F-RCNN/Mask-RCNN

Hi @tomb88 ,

You can refer to this post:

So in MaskRCNN, you would define a forward hook (find more about it here):

mrcnn.roi_heads.box_roi_pool.register_forward_hook(hook_fn)

and your hook_fn would catpure the input.