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