Hi,
the error message is not terribly intuitive, but the reason is that the size parameter should be an integer that should be the length of the smaller edge (see torchvision.transforms.Scale 49 in the documentation).
It may be worth extending the Scale transform or checking for it if it is a common error case.
Best regards
Thomas