Improving the performance of object detection by preserving label distribution