Binarify dataset after resizing (not before).