Skip to content
Snippets Groups Projects
Unverified Commit 7e83c1dd authored by Miao Zheng's avatar Miao Zheng Committed by GitHub
Browse files

[Enhancement] Add mmcls installation in circle ci (#1898)

parent e4b9d72a
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ jobs:
command: |
python -m pip install git+ssh://git@github.com/open-mmlab/mmengine.git@main
python -m pip install << parameters.mmcv >>
python -m pip install git+ssh://git@github.com/open-mmlab/mmclassification@dev-1.x
python -m pip install -r requirements.txt
- run:
name: Build and install
......@@ -104,16 +105,18 @@ jobs:
name: Clone Repos
command: |
git clone -b main --depth 1 ssh://git@github.com/open-mmlab/mmengine.git /home/circleci/mmengine
git clone -b dev-1.x --depth 1 ssh://git@github.com/open-mmlab/mmclassification.git /home/circleci/mmclassification
- run:
name: Build Docker image
command: |
docker build .circleci/docker -t mmseg:gpu --build-arg PYTORCH=<< parameters.torch >> --build-arg CUDA=<< parameters.cuda >> --build-arg CUDNN=<< parameters.cudnn >>
docker run --gpus all -t -d -v /home/circleci/project:/mmseg -v /home/circleci/mmengine:/mmengine -w /mmseg --name mmseg mmseg:gpu
docker run --gpus all -t -d -v /home/circleci/project:/mmseg -v /home/circleci/mmengine:/mmengine -v /home/circleci/mmclassification:/mmclassification -w /mmseg --name mmseg mmseg:gpu
- run:
name: Install mmseg dependencies
command: |
docker exec mmseg pip install -e /mmengine
docker exec mmseg pip install << parameters.mmcv >>
docker exec mmseg pip install -e /mmclassification
docker exec mmseg python -m pip install -r requirements.txt
- run:
name: Build and install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment