Implement the SpatialPyramidPoolingDataLayer to train and test detector