It seems you are passing two arguments to Resize, where the second one will be interpreted as the interpolation method.
If you want to pass the size specifying the height and width, pass it as a tuple:
Resize((256, 256))