Hi, I’m a new fan of Pytorch and I’m trying to write some transforms on my dataset:
data_transforms = {
    'train': transforms.Compose([
        transforms.Resize(256),
        transforms.RandomResizedCrop(224),
        transforms.RandomHorizontalFlip(0.5),
        ...

but I get this error:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-37-3baaf9faeff4> in <module>()
      6         transforms.Resize(256),
      7         transforms.RandomResizedCrop(224),
----> 8         transforms.RandomHorizontalFlip(0.5),
      9         transforms.RandomGrayscale(p=0.1),
     10         transforms.ColorJitter(brightness=0.1,constrast=0.1,saturation=0.1,hue=0.1),

TypeError: object() takes no parameters

Documentation though says that RandomHorizontalFlip takes one argument, the probability of flipping. Where’s my error?
(pytorch 0.3.1, torchvision 0.2.0)
EDIT: out of curiosity, I removed the problematic line and it throws an error now on the ColorJitter transform:
TypeError: __init__() got an unexpected keyword argument 'constrast'

Looks like a version problem but as I said before, upgrading does not change anything (“requirement already statisfied”). Any kind of hint would be greatly appreciated.