Updating torchvision after upgrading to PyTorch 1.0.1

I noticed that some transforms were missing from torchvision.transforms; for example, for example, transforms.RandomPerspective.

torch.__version__
Out[17]: '1.0.1'

torchvision.__version__
Out[18]: '0.2.1'

I need to ask before trying anything, would updating torchvision via
conda update pytorch torchvision
solve the problem?

RandomPerspective is quite new (PR), so you should update torchvision to get this functionality.
If you are concerned about the conda update command and any side effects, I would recommend to create a new virtual environment and try to install the latest lib versions there.

1 Like