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