Added offline mode for rcnn