How to upgrade torchvision for RandomAffine transformation?

I recently installed pytorch and torchvision with command

conda install pytorch torchvision -c pytorch

but I realized that some code was added to transforms (for example I saw RandomAffine here ).

I tried to do an upgrade of my torchvision module (which is 0.2.0) with conda upgrade torchvision -c pytorch but it says that the requirement is already satisfied. RandomAffine is not available though. What command should I execute to get this new (and very useful) transformation?


The transform you referred to is available at master, but not in a release yet. You can build from source ( It should be very easy.

Thanks @SimonW for the info.