Hy @bfeeny, considering the last mini_batch is not the same size, as the rest. I guess one can implement a batch loader with variable size. Also the pytorch model need (batch_size,width,height,channel) where batch size can vary.