Imported from https://github.com/longcw/yolo2-pytorch