Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
c934605e
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c18058b40566fab77ed769ec6df913e8ea39fdf9"
Unverified
Commit
c934605e
authored
Oct 03, 2021
by
Zaida Zhou
Committed by
GitHub
Oct 03, 2021
Browse files
Switch to the docker image provided by PyTorch (#1376)
parent
8cac7c25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
76 deletions
+33
-76
.github/workflows/build.yml
.github/workflows/build.yml
+33
-76
No files found.
.github/workflows/build.yml
View file @
c934605e
...
@@ -32,7 +32,6 @@ jobs:
...
@@ -32,7 +32,6 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
python-version
:
[
3.7
]
python-version
:
[
3.7
]
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
-
name
:
Set up Python ${{ matrix.python-version }}
...
@@ -41,8 +40,6 @@ jobs:
...
@@ -41,8 +40,6 @@ jobs:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
-
name
:
Install utils
run
:
pip install psutil
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -75,8 +72,6 @@ jobs:
...
@@ -75,8 +72,6 @@ jobs:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
-
name
:
Install utils
run
:
pip install psutil
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Build and install
-
name
:
Build and install
...
@@ -93,12 +88,8 @@ jobs:
...
@@ -93,12 +88,8 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
python-version
:
[
3.7
]
python-version
:
[
3.7
]
torch
:
[
1.3.1
,
1.4.0
,
1.5.1
,
1.6.0
,
1.7.0
,
1.8.0
,
1.9.0
]
torch
:
[
1.5.1
,
1.6.0
,
1.7.0
,
1.8.0
,
1.9.0
]
include
:
include
:
-
torch
:
1.3.1
torchvision
:
0.4.2
-
torch
:
1.4.0
torchvision
:
0.5.0
-
torch
:
1.5.1
-
torch
:
1.5.1
torchvision
:
0.6.1
torchvision
:
0.6.1
-
torch
:
1.6.0
-
torch
:
1.6.0
...
@@ -117,13 +108,11 @@ jobs:
...
@@ -117,13 +108,11 @@ jobs:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
-
name
:
Install utils
run
:
pip install psutil
-
name
:
Install Pillow
run
:
pip install Pillow==6.2.2
if
:
${{matrix.torchvision == '0.4.2'}}
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
# pstuil is an optional package to detect the number of CPU for compiling mmcv
-
name
:
Install psutil
run
:
pip install psutil
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -137,10 +126,9 @@ jobs:
...
@@ -137,10 +126,9 @@ jobs:
build_cu101
:
build_cu101
:
runs-on
:
ubuntu-18.04
runs-on
:
ubuntu-18.04
container
:
image
:
pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel
env
:
env
:
CUDA
:
10.1.105-1
CUDA_SHORT
:
10.1
UBUNTU_VERSION
:
ubuntu1804
FORCE_CUDA
:
1
FORCE_CUDA
:
1
MMCV_CUDA_ARGS
:
-gencode=arch=compute_61,code=sm_61
MMCV_CUDA_ARGS
:
-gencode=arch=compute_61,code=sm_61
strategy
:
strategy
:
...
@@ -167,48 +155,38 @@ jobs:
...
@@ -167,48 +155,38 @@ jobs:
-
python-version
:
3.9
-
python-version
:
3.9
torch
:
1.8.0+cu101
torch
:
1.8.0+cu101
torchvision
:
0.9.0+cu101
torchvision
:
0.9.0+cu101
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
uses
:
actions/setup-python@v2
with
:
with
:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
name
:
Install CUDA
-
name
:
Install python-dev
run
:
|
run
:
apt-get update && apt-get install -y python${{matrix.python-version}}-dev
export INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
if
:
${{matrix.python-version != '3.9'}}
wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
sudo dpkg -i ${INSTALLER}
wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
sudo apt-key add 7fa2af80.pub
sudo apt update -qq
sudo apt install -y cuda-${CUDA_SHORT/./-} cuda-cufft-dev-${CUDA_SHORT/./-}
sudo apt clean
export CUDA_HOME=/usr/local/cuda-${CUDA_SHORT}
sudo cp /usr/local/cuda-10.2/include/* /usr/local/cuda/include
sudo cp -r /usr/local/cuda-10.2/lib64/* /usr/local/cuda/lib64/
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/include:${LD_LIBRARY_PATH}
export PATH=${CUDA_HOME}/bin:${PATH}
sudo apt-get install -y ninja-build
-
name
:
Install utils
run
:
pip install psutil
-
name
:
Install Pillow
-
name
:
Install Pillow
run
:
pip install Pillow==6.2.2
run
:
python -m
pip install Pillow==6.2.2
if
:
${{matrix.torchvision == '0.4.2'}}
if
:
${{matrix.torchvision == '0.4.2'}}
# When we use a third-party container, we need to add python -m to call
# the user-installed pip when we use the pip command, otherwise it will
# call the system pip
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
run
:
python -m
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo
apt-get update &&
sudo
apt-get install -y ffmpeg libturbojpeg
run
:
apt-get update && apt-get install -y ffmpeg libturbojpeg
ninja-build
-
name
:
Install dependencies for compiling onnx when python=3.9
-
name
:
Install dependencies for compiling onnx when python=3.9
run
:
pip install protobuf &&
sudo
apt-get install libprotobuf-dev protobuf-compiler
run
:
python -m
pip install protobuf && apt-get
-y
install libprotobuf-dev protobuf-compiler
cmake
if
:
${{matrix.python-version == '3.9'}}
if
:
${{matrix.python-version == '3.9'}}
# pstuil is an optional package to detect the number of CPU for compiling mmcv
-
name
:
Install psutil
run
:
python -m pip install psutil
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs &&
python -m
pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
run
:
python -c "import mmcv"
run
:
python -c "import mmcv"
-
name
:
Run unittests and generate coverage report
-
name
:
Run unittests and generate coverage report
run
:
|
run
:
|
pip install -r requirements/test.txt
python -m
pip install -r requirements/test.txt
coverage run --branch --source=mmcv -m pytest tests/
coverage run --branch --source=mmcv -m pytest tests/
coverage xml
coverage xml
coverage report -m
coverage report -m
...
@@ -225,10 +203,9 @@ jobs:
...
@@ -225,10 +203,9 @@ jobs:
build_cu102
:
build_cu102
:
runs-on
:
ubuntu-18.04
runs-on
:
ubuntu-18.04
container
:
image
:
pytorch/pytorch:1.9.0-cuda10.2-cudnn7-devel
env
:
env
:
CUDA
:
10.2.89-1
CUDA_SHORT
:
10.2
UBUNTU_VERSION
:
ubuntu1804
FORCE_CUDA
:
1
FORCE_CUDA
:
1
MMCV_CUDA_ARGS
:
-gencode=arch=compute_61,code=sm_61
MMCV_CUDA_ARGS
:
-gencode=arch=compute_61,code=sm_61
strategy
:
strategy
:
...
@@ -244,44 +221,30 @@ jobs:
...
@@ -244,44 +221,30 @@ jobs:
-
python-version
:
3.8
-
python-version
:
3.8
torch
:
1.9.0+cu102
torch
:
1.9.0+cu102
torchvision
:
0.10.0+cu102
torchvision
:
0.10.0+cu102
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
uses
:
actions/setup-python@v2
with
:
with
:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
name
:
Install CUDA
-
name
:
Install python-dev
run
:
|
run
:
apt-get update && apt-get install -y python${{matrix.python-version}}-dev
export INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
-
name
:
python -m Install PyTorch
wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
run
:
python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
sudo dpkg -i ${INSTALLER}
wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
sudo apt-key add 7fa2af80.pub
sudo apt update -qq
sudo apt install -y cuda-${CUDA_SHORT/./-} cuda-cufft-dev-${CUDA_SHORT/./-}
sudo apt clean
export CUDA_HOME=/usr/local/cuda-${CUDA_SHORT}
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/include:${LD_LIBRARY_PATH}
export PATH=${CUDA_HOME}/bin:${PATH}
sudo apt-get install -y ninja-build
-
name
:
Install Pillow
run
:
pip install Pillow==6.2.2
if
:
${{matrix.torchvision == '0.4.2'}}
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
apt-get update && apt-get install -y ffmpeg libturbojpeg ninja-build
# pstuil is an optional package to detect the number of CPU for compiling mmcv
-
name
:
Install psutil
run
:
python -m pip install psutil
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs &&
python -m
pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
run
:
python -c "import mmcv"
run
:
python -c "import mmcv"
-
name
:
Run unittests and generate coverage report
-
name
:
Run unittests and generate coverage report
run
:
|
run
:
|
pip install -r requirements/test.txt
python -m
pip install -r requirements/test.txt
coverage run --branch --source=mmcv -m pytest tests/
coverage run --branch --source=mmcv -m pytest tests/
coverage xml
coverage xml
coverage report -m
build_windows_without_ops
:
build_windows_without_ops
:
runs-on
:
windows-latest
runs-on
:
windows-latest
...
@@ -303,9 +266,6 @@ jobs:
...
@@ -303,9 +266,6 @@ jobs:
uses
:
actions/setup-python@v2
uses
:
actions/setup-python@v2
with
:
with
:
python-version
:
3.7
python-version
:
3.7
-
name
:
Install Pillow
run
:
pip install Pillow==6.2.2
if
:
${{matrix.torchvision == '0.4.2'}}
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu --no-cache-dir -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu --no-cache-dir -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Build and install
-
name
:
Build and install
...
@@ -335,9 +295,6 @@ jobs:
...
@@ -335,9 +295,6 @@ jobs:
uses
:
actions/setup-python@v2
uses
:
actions/setup-python@v2
with
:
with
:
python-version
:
3.7
python-version
:
3.7
-
name
:
Install Pillow
run
:
pip install Pillow==6.2.2
if
:
${{matrix.torchvision == '0.4.2'}}
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu --no-cache-dir -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu --no-cache-dir -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Build and install
-
name
:
Build and install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment