How to upgrade torchvision to newest unstable version (0.12)?

username: julianolm
cooked: <p>Hello, I was happy to find pytorch dataset support for the <a href="https://www.robots.ox.ac.uk/~vgg/data/dtd/" rel="noopener nofollow ugc">Describable Texture Dataset (DTD)</a> on <a href="https://pytorch.org/vision/main/datasets.html" rel="noopener nofollow ugc">the docs</a>.</p>
<p>However, after I’ve failed trying to import it in my google colab instance (using torch v1.10 and torchvision 0.11) I noticed that it was only available on the main (0.12) unstable version of torchvision.</p>
<p>So what should I do to use it?</p>
<p>When I try:</p>
<pre><code class="lang-auto">!pip install --upgrade torchvision==0.12
</code></pre>
<p>I get:</p>
<blockquote>
<p>ERROR: Could not find a version that satisfies the requirement torchvision==0.12 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3)<br>
ERROR: No matching distribution found for torchvision==0.12</p>
</blockquote>

username: anantguptadbl
cooked: <p><a class="mention" href="/u/julianolm">@julianolm</a><br>
Since it is the unstable version, we would have to build it</p>
<aside class="onebox githubblob" data-onebox-src="https://github.com/pytorch/vision/blob/main/CONTRIBUTING.md#development-installation">
  <header class="source">

      <a href="https://github.com/pytorch/vision/blob/main/CONTRIBUTING.md#development-installation" target="_blank" rel="noopener nofollow ugc">github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://github.com/pytorch/vision/blob/main/CONTRIBUTING.md#development-installation" target="_blank" rel="noopener nofollow ugc">pytorch/vision/blob/main/CONTRIBUTING.md#development-installation</a></h4>


      <pre><code class="lang-md"># Contributing to Torchvision

We want to make contributing to this project as easy and transparent as possible.

## TL;DR

We appreciate all contributions. If you are interested in contributing to Torchvision, there are many ways to help out. 
Your contributions may fall into the following categories:

- It helps the project if you could 
    - Report issues you're facing
    - Give a :+1: on issues that others reported and that are relevant to you 

- Answering queries on the issue tracker, investigating bugs are very valuable contributions to the project.

- You would like to improve the documentation. This is no less important than improving the library itself! 
If you find a typo in the documentation, do not hesitate to submit a GitHub pull request.

- If you would like to fix a bug
    - please pick one from the [list of open issues labelled as "help wanted"](https://github.com/pytorch/vision/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)
</code></pre>



  This file has been truncated. <a href="https://github.com/pytorch/vision/blob/main/CONTRIBUTING.md#development-installation" target="_blank" rel="noopener nofollow ugc">show original</a>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>


username: ptrblck
cooked: <p>Alternatively, you could also install the nightly binaries instead of building from source.</p>