Hi,
In this tutorial: https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html 5
There is a code line that has an error:
        if self.transforms is not None:
            img, target = self.transforms(img, target)

According to the definition in the previous code section, self.transforms is a Compose object, so it accepts only one argument:
def get_transform(train):
    transforms = []
    transforms.append(T.ToTensor())
    if train:
        transforms.append(T.RandomHorizontalFlip(0.5))
    return T.Compose(transforms)

Can you please clarify what’s the correct syntax that one should use?