accimage
accimage copied to clipboard
"Integer argument expected" for img.crop
Installing and switching to the accimage backend breaks my transforms.RandomResizedCrop. The fix I've found is modifying crop() in torchvisions.transforms.functional so that it does
img.crop((int(j), int(i), int(j + w), int(i + h)))
instead of
img.crop((j, i, j + w, i + h))
(sidenote: this library is deliciously fast)