Weird Error when using transforms.Scale

Hi!

So when trying Scale with a tuple I get a weird error (see the following) while when I’m inputting an int it works fine. Why?!

Here’s what’s happening:

(Pdb) t1=transforms.Scale((5,5))
(Pdb) t2=transforms.Scale(5)
(Pdb) image
<PIL.Image.Image image mode=RGB size=816x816 at 0x7F49A6BA6668>
(Pdb) t1(image)
*** TypeError: unsupported operand type(s) for /: ‘tuple’ and ‘int’
(Pdb) t2(image)
<PIL.Image.Image image mode=RGB size=5x5 at 0x7F49A6B61780>

Thanks in advance guys!

You should probably update torchvision, possibly by installing from git https://github.com/pytorch/vision/

Best regards

Thomas

I’ve done that twice (the second time I installed from source) and that didn’t help.

Using /usr/local/lib/python3.5/dist-packages
Finished processing dependencies for torchvision==0.1.9