BUG: maximum train and validation sizes were not correctly handled (ac574321) BUG: fix TrainImagesClassifier when bm=0. (2a3cce86)