ddeeppnneett:

If the bounding boxes have different values, with different wid and heights, loop + collate_fn??


I found another solution from STN: using affine transform to do cropping. See discussion here Cropping a minibatch of images, each image a bit differently 180