Imported from https://github.com/google/automl/tree/master/efficientdet