Imported from https://github.com/lucs-C/tf-faster-rcnn-master