You would have to transform the images (x1 and x2) and pass the tensors to the model.
You are currently reassigning image to both transformed tensors.
This should work:
x1 = transforms(x1)
x2 = transforms(x2)
output = model(x1, x2)