mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
update CI for pip 20.3 (#307)
* update CI for pip 20.3 * fixed 1.6 torchvision * delete python 3.8 * fixed mmcv * add cuda home * change to 1.2.2 * add pip upgrade * install cuda for all * add missing mmcv * switch to deprecate
This commit is contained in:
parent
55df29beab
commit
7e918e302a
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
|||||||
torch: [1.3.0+cpu, 1.5.0+cpu]
|
torch: [1.3.0+cpu, 1.5.0+cpu]
|
||||||
include:
|
include:
|
||||||
- torch: 1.3.0+cpu
|
- torch: 1.3.0+cpu
|
||||||
torchvision: 0.4.2+cpu
|
torchvision: 0.4.1+cpu
|
||||||
- torch: 1.5.0+cpu
|
- torch: 1.5.0+cpu
|
||||||
torchvision: 0.6.0+cpu
|
torchvision: 0.6.0+cpu
|
||||||
- torch: 1.5.0+cpu
|
- torch: 1.5.0+cpu
|
||||||
@ -71,13 +71,13 @@ jobs:
|
|||||||
export PATH=${CUDA_HOME}/bin:${PATH}
|
export PATH=${CUDA_HOME}/bin:${PATH}
|
||||||
sudo apt-get install -y ninja-build
|
sudo apt-get install -y ninja-build
|
||||||
- name: Install Pillow
|
- name: Install Pillow
|
||||||
if: ${{matrix.torchvision == '0.4.2+cpu'}}
|
if: ${{matrix.torchvision == '0.4.1+cpu'}}
|
||||||
run: pip install Pillow==6.2.2
|
run: pip install Pillow==6.2.2
|
||||||
- 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: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
|
||||||
- name: Install mmseg dependencies
|
- name: Install mmseg dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install mmcv-full==latest+torch${{matrix.torch}} -f https://download.openmmlab.com/mmcv/dist/index.html
|
pip install mmcv-full==latest+torch${{matrix.torch}} -f https://download.openmmlab.com/mmcv/dist/index.html --use-deprecated=legacy-resolver
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Build and install
|
- name: Build and install
|
||||||
run: rm -rf .eggs && pip install -e .
|
run: rm -rf .eggs && pip install -e .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user