@@ -28,34 +28,34 @@ old build first. You often need to rebuild detectron2 after reinstalling PyTorch
28
28
29
29
### Install Pre-Built Detectron2 (Linux only)
30
30
31
- Choose from this table to install [ v0.3 (Nov 2020 )] ( https://github.com/facebookresearch/detectron2/releases ) :
31
+ Choose from this table to install [ v0.4 (Mar 2021 )] ( https://github.com/facebookresearch/detectron2/releases ) :
32
32
33
- <table class =" docutils " ><tbody ><th width =" 80 " > CUDA </th ><th valign =" bottom " align =" left " width =" 100 " >torch 1.7</th ><th valign =" bottom " align =" left " width =" 100 " >torch 1.6</th ><th valign =" bottom " align =" left " width =" 100 " >torch 1.5</th > <tr ><td align =" left " >11.0</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
33
+ <table class =" docutils " ><tbody ><th width =" 80 " > CUDA </th ><th valign =" bottom " align =" left " width =" 100 " >torch 1.8</th ><th valign =" bottom " align =" left " width =" 100 " >torch 1.7</th ><th valign =" bottom " align =" left " width =" 100 " >torch 1.6</th > <tr ><td align =" left " >11.1</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
34
+ https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.8/index.html
35
+ </code ></pre > </details > </td > <td align =" left " > </td > <td align =" left " > </td > </tr > <tr ><td align =" left " >11.0</td ><td align =" left " > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
34
36
https://dl.fbaipublicfiles.com/detectron2/wheels/cu110/torch1.7/index.html
35
- </code ></pre > </details > </td > <td align =" left " > </td > <td align =" left " > </td > </tr > <tr ><td align =" left " >10.2</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
37
+ </code ></pre > </details > </td > <td align =" left " > </td > </tr > <tr ><td align =" left " >10.2</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
38
+ https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.8/index.html
39
+ </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
36
40
https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.7/index.html
37
41
</code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
38
42
https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.6/index.html
39
- </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
40
- https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.5/index.html
41
43
</code ></pre > </details > </td > </tr > <tr ><td align =" left " >10.1</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
44
+ https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html
45
+ </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
42
46
https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.7/index.html
43
47
</code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
44
48
https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.6/index.html
45
- </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
46
- https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html
47
- </code ></pre > </details > </td > </tr > <tr ><td align =" left " >9.2</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
49
+ </code ></pre > </details > </td > </tr > <tr ><td align =" left " >9.2</td ><td align =" left " > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
48
50
https://dl.fbaipublicfiles.com/detectron2/wheels/cu92/torch1.7/index.html
49
51
</code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
50
52
https://dl.fbaipublicfiles.com/detectron2/wheels/cu92/torch1.6/index.html
51
- </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
52
- https://dl.fbaipublicfiles.com/detectron2/wheels/cu92/torch1.5/index.html
53
53
</code ></pre > </details > </td > </tr > <tr ><td align =" left " >cpu</td ><td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
54
+ https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.8/index.html
55
+ </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
54
56
https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.7/index.html
55
57
</code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
56
58
https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.6/index.html
57
- </code ></pre > </details > </td > <td align =" left " ><details ><summary > install </summary ><pre ><code >python -m pip install detectron2 -f \
58
- https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.5/index.html
59
59
</code ></pre > </details > </td > </tr ></tbody ></table >
60
60
61
61
@@ -183,14 +183,16 @@ to match your local CUDA installation, or install a different version of CUDA to
183
183
C++ compilation errors from NVCC / NVRTC; "Unsupported gpu architecture"
184
184
</summary >
185
185
186
+ A few possibilities:
187
+
186
188
1 . Local CUDA/NVCC version has to match the CUDA version of your PyTorch. Both can be found in ` python collect_env.py ` .
187
189
When they are inconsistent, you need to either install a different build of PyTorch (or build by yourself)
188
190
to match your local CUDA installation, or install a different version of CUDA to match PyTorch.
189
191
190
192
2 . Local CUDA/NVCC version shall support the SM architecture (a.k.a. compute capability) of your GPU.
191
193
The capability of your GPU can be found at [ developer.nvidia.com/cuda-gpus] ( https://developer.nvidia.com/cuda-gpus ) .
192
194
The capability supported by NVCC is listed at [ here] ( https://gist.github.com/ax3l/9489132 ) .
193
- If your NVCC version is too old, this can be workaround a lower capability. environment variable
195
+ If your NVCC version is too old, this can be workaround by setting environment variable
194
196
` TORCH_CUDA_ARCH_LIST ` to a lower, supported capability.
195
197
196
198
3 . The combination of NVCC and GCC you use is incompatible. You need to change one of their versions.
0 commit comments