887574002:

self.transforms(image= np.array(img),mask = np.array(target))


Applying the same reasoning to transforms(), it doesn’t take any input arguments but you gave two inputs and hence the error.