Skip to content

Commit

Permalink
Merge pull request #660 from RangiLyu/registry
Browse files Browse the repository at this point in the history
  • Loading branch information
wangruohui authored Dec 17, 2021
2 parents 9d48e4e + 2474414 commit 9c9d690
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install MMCV
run: |
pip install mmcv-full==1.3.0 -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
pip install mmcv-full==1.3.1 -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
python -c 'import mmcv; print(mmcv.__version__)'
- name: Install FaceXLib
run: pip install facexlib
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Install MMCV
run: |
python -V
python -m pip install mmcv-full==1.3.0 -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.mmcv_link}}/index.html
python -m pip install mmcv-full==1.3.1 -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.mmcv_link}}/index.html
python -c 'import mmcv; print(mmcv.__version__)'
- name: Install FaceXLib
run: python -m pip install facexlib
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
- name: Install MMCV
run: |
python -V
python -m pip install mmcv-full==1.3.0 -f https://download.openmmlab.com/mmcv/dist/cu102/${{matrix.mmcv_link}}/index.html
python -m pip install mmcv-full==1.3.1 -f https://download.openmmlab.com/mmcv/dist/cu102/${{matrix.mmcv_link}}/index.html
python -c 'import mmcv; print(mmcv.__version__)'
- name: Install FaceXLib
run: python -m pip install facexlib
Expand Down
2 changes: 1 addition & 1 deletion mmedit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def digit_version(version_str):
return digit_ver


MMCV_MIN = '1.3'
MMCV_MIN = '1.3.1'
MMCV_MAX = '1.5'

mmcv_min_version = digit_version(MMCV_MIN)
Expand Down
9 changes: 5 additions & 4 deletions mmedit/models/registry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.cnn import MODELS as MMCV_MODELS
from mmcv.utils import Registry

MODELS = Registry('model')
BACKBONES = Registry('backbone')
COMPONENTS = Registry('component')
LOSSES = Registry('loss')
MODELS = Registry('model', parent=MMCV_MODELS)
BACKBONES = MODELS
COMPONENTS = MODELS
LOSSES = MODELS
2 changes: 1 addition & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lmdb
mmcv-full>=1.2.0
mmcv-full>=1.3.1
scikit-image
tensorboard
yapf

0 comments on commit 9c9d690

Please sign in to comment.