Created by: still-wait
Cherry pick #624
Fixed https://github.com/PaddlePaddle/PaddleDetection/issues/623