mirror of https://github.com/open-mmlab/mmcv.git
[Docs] Update version info (#2966)
parent
94dff26554
commit
df2dadb78d
|
@ -2,8 +2,12 @@ version: 2
|
|||
|
||||
formats: all
|
||||
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.7"
|
||||
|
||||
python:
|
||||
version: 3.7
|
||||
install:
|
||||
- requirements: requirements/runtime.txt
|
||||
- requirements: requirements/docs.txt
|
||||
|
|
|
@ -1,9 +1,25 @@
|
|||
{
|
||||
"Linux": [
|
||||
{
|
||||
"cuda": "12.1",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -11,6 +27,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -18,6 +36,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -27,6 +47,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -36,6 +58,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -47,6 +71,8 @@
|
|||
"cuda": "11.5",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -58,6 +84,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -69,6 +97,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -80,6 +110,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -91,6 +123,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -102,6 +136,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -113,6 +149,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -134,6 +172,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -145,6 +185,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -156,6 +198,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -167,6 +211,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -178,6 +224,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -205,10 +253,19 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "10.2",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "10.1",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -236,6 +293,13 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "10.1",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "9.2",
|
||||
"torch": "1.7.x",
|
||||
|
@ -256,10 +320,27 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "9.2",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -267,6 +348,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -276,6 +359,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -287,6 +372,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -298,6 +385,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -309,6 +398,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -320,6 +411,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -346,13 +439,37 @@
|
|||
"2.0.0rc2",
|
||||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2"
|
||||
]
|
||||
}
|
||||
],
|
||||
"Windows": [
|
||||
{
|
||||
"cuda": "12.1",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -360,6 +477,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -367,6 +486,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -376,6 +497,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -385,6 +508,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -396,6 +521,8 @@
|
|||
"cuda": "11.5",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -407,6 +534,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -418,6 +547,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -429,6 +560,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -440,6 +573,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -451,6 +586,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -462,6 +599,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -473,6 +612,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -484,6 +625,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -495,6 +638,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -549,10 +694,19 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -560,6 +714,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -569,6 +725,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -580,6 +738,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -591,6 +751,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -602,6 +764,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -613,6 +777,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -642,10 +808,18 @@
|
|||
}
|
||||
],
|
||||
"macOS": [
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -653,6 +827,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -670,6 +845,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -680,6 +856,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -690,6 +867,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -700,6 +878,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -710,6 +889,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
|
|
@ -81,70 +81,83 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
select {
|
||||
z-index: 1000;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
width: 6.7rem;
|
||||
}
|
||||
#select-container {
|
||||
position: relative;
|
||||
height: 30px;
|
||||
}
|
||||
#select-cmd {
|
||||
background-color: #f5f6f7;
|
||||
font-size: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
/* 让每一个都间隔1.3rem */
|
||||
#select-os {
|
||||
/* left: 1.375rem; */
|
||||
left: 0;
|
||||
}
|
||||
#select-cuda {
|
||||
/* left: 9.375rem; 9.375 = 1.375 + 6.7 + 1.3 */
|
||||
left: 8rem;
|
||||
}
|
||||
#select-torch {
|
||||
/* left: 17.375rem; 17.375 = 9.375 + 6.7 + 1.3 */
|
||||
left: 16rem;
|
||||
}
|
||||
#select-mmcv {
|
||||
/* left: 25.375rem; 25.375 = 17.375 + 6.7 + 1.3 */
|
||||
left: 24rem;
|
||||
}
|
||||
</style>
|
||||
<div id="select-container">
|
||||
<select
|
||||
<style>
|
||||
select {
|
||||
/*z-index: 1000;*/
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
width: 6.7rem;
|
||||
}
|
||||
#select-container {
|
||||
position: relative;
|
||||
height: 30px;
|
||||
}
|
||||
#select-cmd {
|
||||
background-color: #f5f6f7;
|
||||
font-size: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
/* 让每一个都间隔1.3rem */
|
||||
#select-os {
|
||||
/* left: 1.375rem; */
|
||||
left: 0;
|
||||
}
|
||||
#select-cuda {
|
||||
/* left: 9.375rem; 9.375 = 1.375 + 6.7 + 1.3 */
|
||||
left: 8rem;
|
||||
}
|
||||
#select-torch {
|
||||
/* left: 17.375rem; 17.375 = 9.375 + 6.7 + 1.3 */
|
||||
left: 16rem;
|
||||
}
|
||||
#select-mmcv {
|
||||
/* left: 25.375rem; 25.375 = 17.375 + 6.7 + 1.3 */
|
||||
left: 24rem;
|
||||
}
|
||||
</style>
|
||||
<div id="select-container">
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.id))"
|
||||
onchange="changeOS(this.value)"
|
||||
id="select-os">
|
||||
</select>
|
||||
<select
|
||||
</select>
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.is))"
|
||||
onchange="changeCUDA(this.value)"
|
||||
id="select-cuda">
|
||||
</select>
|
||||
<select
|
||||
</select>
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.is))"
|
||||
onchange="changeTorch(this.value)"
|
||||
id="select-torch">
|
||||
</select>
|
||||
<select
|
||||
</select>
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.is))"
|
||||
onchange="changeMMCV(this.value)"
|
||||
id="select-mmcv">
|
||||
</select>
|
||||
</div>
|
||||
<pre id="select-cmd"></pre>
|
||||
</select>
|
||||
</div>
|
||||
<pre id="select-cmd"></pre>
|
||||
</body>
|
||||
<script>
|
||||
// 各个select当前的值
|
||||
let osVal, cudaVal, torchVal, mmcvVal;
|
||||
function clickOutside(targetDom, handler) {
|
||||
const clickHandler = (e) => {
|
||||
if (!targetDom || targetDom.contains(e.target)) return;
|
||||
handler?.();
|
||||
document.removeEventListener('click', clickHandler, false);
|
||||
};
|
||||
document.addEventListener('click', clickHandler, false);
|
||||
}
|
||||
function changeMMCV(val) {
|
||||
mmcvVal = val;
|
||||
change("select-mmcv");
|
||||
|
@ -161,11 +174,12 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
osVal = val;
|
||||
change("select-os");
|
||||
}
|
||||
// 控制size大小相关的几个方法
|
||||
function handleSelectMouseDown(id) {
|
||||
const dom = document.getElementById(id);
|
||||
if (!dom) return;
|
||||
const len = dom?.options?.length;
|
||||
if (len >= 9) {
|
||||
if (len >= 10) {
|
||||
dom.size = 10;
|
||||
dom.style.zIndex = 100;
|
||||
}
|
||||
|
@ -179,6 +193,7 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
function handleSelectBlur(id) {
|
||||
const dom = document.getElementById(id);
|
||||
if (!dom) {
|
||||
// 如果没有指定特定的id,那就直接把所有的select都设置成size = 1
|
||||
handleSelectClick();
|
||||
return;
|
||||
}
|
||||
|
@ -199,10 +214,12 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
cmdString = cmdString.replace("{cu_version}", cudaVersion).replace("{mmcv_version}", mmcvVal).replace("{torch_version}", torchVersion);
|
||||
cmd.textContent = cmdString;
|
||||
}
|
||||
// string数组去重
|
||||
function unique(arr) {
|
||||
if (!arr || !Array.isArray(arr)) return [];
|
||||
return [...new Set(arr)];
|
||||
}
|
||||
// 根据string数组生成option的DocumentFragment
|
||||
function genOptionFragment(data, id) {
|
||||
const name = id.includes("-")? id.split("-")[1] : id;
|
||||
const fragment = new DocumentFragment();
|
||||
|
@ -213,23 +230,33 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
text = `${option}`;
|
||||
}
|
||||
ele.textContent = text;
|
||||
// 添加value属性,方便下拉框选择时直接读到数据
|
||||
ele.value = option;
|
||||
// 添加点击事件监听
|
||||
ele.addEventListener('click', handleSelectClick);
|
||||
fragment.appendChild(ele);
|
||||
});
|
||||
return fragment;
|
||||
}
|
||||
// 在dom树中找到id对应的dom(select元素),并将生成的options添加到元素内
|
||||
function findAndAppend(data, id) {
|
||||
const fragment = genOptionFragment(data, id);
|
||||
const dom = document.getElementById(id);
|
||||
if (dom) dom.replaceChildren(fragment);
|
||||
}
|
||||
/**
|
||||
* change方法的重点在于
|
||||
* 1. 各个下拉框数据的联动
|
||||
* OS ==> cuda ==> torch ==> mmcv
|
||||
* 2. 命令行的修改
|
||||
*/
|
||||
function change(id) {
|
||||
const order = ["select-mmcv", "select-torch", "select-cuda", "select-os"];
|
||||
const idx = order.indexOf(id);
|
||||
if (idx === -1) return;
|
||||
const versionDetail = version[osVal];
|
||||
if (idx >= 3) {
|
||||
// 根据os修改cuda
|
||||
let cuda = [];
|
||||
versionDetail.forEach(v => {
|
||||
cuda.push(v.cuda);
|
||||
|
@ -239,6 +266,7 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
findAndAppend(cuda, "select-cuda");
|
||||
}
|
||||
if (idx >= 2) {
|
||||
// 根据cuda修改torch
|
||||
const torch = [];
|
||||
versionDetail.forEach(v => {
|
||||
if (v.cuda === cudaVal) torch.push(v.torch);
|
||||
|
@ -247,6 +275,7 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
findAndAppend(torch, "select-torch");
|
||||
}
|
||||
if (idx >= 1) {
|
||||
// 根据torch修改mmcv
|
||||
let mmcv = [];
|
||||
versionDetail.forEach(v => {
|
||||
if (v.cuda === cudaVal && v.torch === torchVal) mmcv = v.mmcv;
|
||||
|
@ -256,21 +285,30 @@ Select the appropriate installation command depending on the type of system, CUD
|
|||
}
|
||||
changeCmd();
|
||||
}
|
||||
// 初始化,处理version数据,并调用findAndAppend
|
||||
function init() {
|
||||
document.addEventListener("click", handleSelectBlur);
|
||||
// 增加一个全局的click事件监听,作为select onBlur事件失效的兜底
|
||||
// document.addEventListener("click", handleSelectBlur);
|
||||
const version = window.version;
|
||||
// OS
|
||||
const os = Object.keys(version);
|
||||
osVal = os[0];
|
||||
findAndAppend(os, "select-os");
|
||||
change("select-os");
|
||||
changeCmd();
|
||||
}
|
||||
// 利用xhr获取本地version数据,如果作为html直接浏览的话需要使用本地服务器打开,否则会有跨域问题
|
||||
window.onload = function () {
|
||||
const url = "../_static/version.json"
|
||||
// 申明一个XMLHttpRequest
|
||||
const request = new XMLHttpRequest();
|
||||
// 设置请求方法与路径
|
||||
request.open("get", url);
|
||||
// 不发送数据到服务器
|
||||
request.send(null);
|
||||
//XHR对象获取到返回信息后执行
|
||||
request.onload = function () {
|
||||
// 返回状态为200,即为数据获取成功
|
||||
if (request.status !== 200) return;
|
||||
const data = JSON.parse(request.responseText);
|
||||
window.version = data;
|
||||
|
|
|
@ -1,9 +1,25 @@
|
|||
{
|
||||
"Linux": [
|
||||
{
|
||||
"cuda": "12.1",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -11,6 +27,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -18,6 +36,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -27,6 +47,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -36,6 +58,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -47,6 +71,8 @@
|
|||
"cuda": "11.5",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -58,6 +84,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -69,6 +97,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -80,6 +110,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -91,6 +123,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -102,6 +136,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -113,6 +149,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -134,6 +172,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -145,6 +185,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -156,6 +198,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -167,6 +211,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -178,6 +224,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -205,10 +253,19 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "10.2",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "10.1",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -236,6 +293,13 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "10.1",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "9.2",
|
||||
"torch": "1.7.x",
|
||||
|
@ -256,10 +320,27 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "9.2",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -267,6 +348,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -276,6 +359,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -287,6 +372,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -298,6 +385,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -309,6 +398,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -320,6 +411,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -346,13 +439,37 @@
|
|||
"2.0.0rc2",
|
||||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "1.5.x",
|
||||
"mmcv": [
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2"
|
||||
]
|
||||
}
|
||||
],
|
||||
"Windows": [
|
||||
{
|
||||
"cuda": "12.1",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "11.8",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -360,6 +477,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -367,6 +486,8 @@
|
|||
"cuda": "11.7",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -376,6 +497,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -385,6 +508,8 @@
|
|||
"cuda": "11.6",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -396,6 +521,8 @@
|
|||
"cuda": "11.5",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -407,6 +534,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -418,6 +547,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -429,6 +560,8 @@
|
|||
"cuda": "11.3",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -440,6 +573,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -451,6 +586,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -462,6 +599,8 @@
|
|||
"cuda": "11.1",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -473,6 +612,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -484,6 +625,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -495,6 +638,8 @@
|
|||
"cuda": "10.2",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -549,10 +694,19 @@
|
|||
"2.0.0rc1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -560,6 +714,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -569,6 +725,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -580,6 +738,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -591,6 +751,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -602,6 +764,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -613,6 +777,8 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.1",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -642,10 +808,18 @@
|
|||
}
|
||||
],
|
||||
"macOS": [
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.1.x",
|
||||
"mmcv": [
|
||||
"2.1.0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cuda": "cpu",
|
||||
"torch": "2.0.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0"
|
||||
]
|
||||
},
|
||||
|
@ -653,6 +827,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.13.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0"
|
||||
|
@ -670,6 +845,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.12.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -680,6 +856,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.11.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -690,6 +867,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.10.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -700,6 +878,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.9.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
@ -710,6 +889,7 @@
|
|||
"cuda": "cpu",
|
||||
"torch": "1.8.x",
|
||||
"mmcv": [
|
||||
"2.1.0",
|
||||
"2.0.0rc4",
|
||||
"2.0.0rc3",
|
||||
"2.0.0rc2",
|
||||
|
|
|
@ -79,71 +79,83 @@ python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
|
|||
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
select {
|
||||
z-index: 1000;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
width: 6.7rem;
|
||||
}
|
||||
#select-container {
|
||||
position: relative;
|
||||
height: 30px;
|
||||
}
|
||||
#select-cmd {
|
||||
background-color: #f5f6f7;
|
||||
font-size: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
/* 让每一个都间隔1.3rem */
|
||||
#select-os {
|
||||
/* left: 1.375rem; */
|
||||
left: 0;
|
||||
}
|
||||
#select-cuda {
|
||||
/* left: 9.375rem; 9.375 = 1.375 + 6.7 + 1.3 */
|
||||
left: 8rem;
|
||||
}
|
||||
#select-torch {
|
||||
/* left: 17.375rem; 17.375 = 9.375 + 6.7 + 1.3 */
|
||||
left: 16rem;
|
||||
}
|
||||
#select-mmcv {
|
||||
/* left: 25.375rem; 25.375 = 17.375 + 6.7 + 1.3 */
|
||||
left: 24rem;
|
||||
}
|
||||
</style>
|
||||
<div id="select-container">
|
||||
<select
|
||||
<style>
|
||||
select {
|
||||
/*z-index: 1000;*/
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
width: 6.7rem;
|
||||
}
|
||||
#select-container {
|
||||
position: relative;
|
||||
height: 30px;
|
||||
}
|
||||
#select-cmd {
|
||||
background-color: #f5f6f7;
|
||||
font-size: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
/* 让每一个都间隔1.3rem */
|
||||
#select-os {
|
||||
/* left: 1.375rem; */
|
||||
left: 0;
|
||||
}
|
||||
#select-cuda {
|
||||
/* left: 9.375rem; 9.375 = 1.375 + 6.7 + 1.3 */
|
||||
left: 8rem;
|
||||
}
|
||||
#select-torch {
|
||||
/* left: 17.375rem; 17.375 = 9.375 + 6.7 + 1.3 */
|
||||
left: 16rem;
|
||||
}
|
||||
#select-mmcv {
|
||||
/* left: 25.375rem; 25.375 = 17.375 + 6.7 + 1.3 */
|
||||
left: 24rem;
|
||||
}
|
||||
</style>
|
||||
<div id="select-container">
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.id))"
|
||||
onchange="changeOS(this.value)"
|
||||
id="select-os">
|
||||
</select>
|
||||
<select
|
||||
</select>
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.is))"
|
||||
onchange="changeCUDA(this.value)"
|
||||
id="select-cuda">
|
||||
</select>
|
||||
<select
|
||||
</select>
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.is))"
|
||||
onchange="changeTorch(this.value)"
|
||||
id="select-torch">
|
||||
</select>
|
||||
<select
|
||||
</select>
|
||||
<select
|
||||
size="1"
|
||||
onmousedown="handleSelectMouseDown(this.id)"
|
||||
onblur="handleSelectBlur(this.id)"
|
||||
onclick="clickOutside(this, () => handleSelectBlur(this.is))"
|
||||
onchange="changeMMCV(this.value)"
|
||||
id="select-mmcv">
|
||||
</select>
|
||||
</div>
|
||||
<pre id="select-cmd"></pre>
|
||||
</select>
|
||||
</div>
|
||||
<pre id="select-cmd"></pre>
|
||||
</body>
|
||||
<script>
|
||||
// 各个select当前的值
|
||||
let osVal, cudaVal, torchVal, mmcvVal;
|
||||
function clickOutside(targetDom, handler) {
|
||||
const clickHandler = (e) => {
|
||||
if (!targetDom || targetDom.contains(e.target)) return;
|
||||
handler?.();
|
||||
document.removeEventListener('click', clickHandler, false);
|
||||
};
|
||||
document.addEventListener('click', clickHandler, false);
|
||||
}
|
||||
function changeMMCV(val) {
|
||||
mmcvVal = val;
|
||||
change("select-mmcv");
|
||||
|
@ -165,7 +177,7 @@ python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
|
|||
const dom = document.getElementById(id);
|
||||
if (!dom) return;
|
||||
const len = dom?.options?.length;
|
||||
if (len >= 9) {
|
||||
if (len >= 10) {
|
||||
dom.size = 10;
|
||||
dom.style.zIndex = 100;
|
||||
}
|
||||
|
@ -235,7 +247,7 @@ python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
|
|||
* 1. 各个下拉框数据的联动
|
||||
* OS ==> cuda ==> torch ==> mmcv
|
||||
* 2. 命令行的修改
|
||||
*/
|
||||
*/
|
||||
function change(id) {
|
||||
const order = ["select-mmcv", "select-torch", "select-cuda", "select-os"];
|
||||
const idx = order.indexOf(id);
|
||||
|
@ -274,7 +286,7 @@ python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
|
|||
// 初始化,处理version数据,并调用findAndAppend
|
||||
function init() {
|
||||
// 增加一个全局的click事件监听,作为select onBlur事件失效的兜底
|
||||
document.addEventListener("click", handleSelectBlur);
|
||||
// document.addEventListener("click", handleSelectBlur);
|
||||
const version = window.version;
|
||||
// OS
|
||||
const os = Object.keys(version);
|
||||
|
|
Loading…
Reference in New Issue