Imported from https://github.com/nautilus261/tf-faster-rcnn