From a7f8e96b31c10ab3e9c133293ca406e6e548475b Mon Sep 17 00:00:00 2001 From: Ma Zerun Date: Mon, 7 Feb 2022 11:46:50 +0800 Subject: [PATCH] Bump version to v0.20.1 (#685) --- configs/convnext/metafile.yml | 4 ++-- configs/efficientnet/metafile.yml | 4 ++-- configs/hrnet/metafile.yml | 4 ++-- configs/twins/metafile.yml | 4 ++-- docker/serve/Dockerfile | 2 +- docs/en/changelog.md | 6 ++++++ docs/en/compatibility.md | 8 ++++++++ docs/en/install.md | 2 +- docs/zh_CN/install.md | 2 +- mmcls/__init__.py | 2 +- mmcls/version.py | 2 +- requirements/mminstall.txt | 2 +- requirements/readthedocs.txt | 2 +- 13 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 docs/en/compatibility.md diff --git a/configs/convnext/metafile.yml b/configs/convnext/metafile.yml index 3825dc4a..24e9d97f 100644 --- a/configs/convnext/metafile.yml +++ b/configs/convnext/metafile.yml @@ -10,8 +10,8 @@ Collections: Title: A ConvNet for the 2020s README: configs/convnext/README.md Code: - Version: v0.20.0 - URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.0/mmcls/models/backbones/convnext.py + Version: v0.20.1 + URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.1/mmcls/models/backbones/convnext.py Models: - Name: convnext-tiny_3rdparty_32xb128_in1k diff --git a/configs/efficientnet/metafile.yml b/configs/efficientnet/metafile.yml index cdb8f424..c8bbf0dd 100644 --- a/configs/efficientnet/metafile.yml +++ b/configs/efficientnet/metafile.yml @@ -17,8 +17,8 @@ Collections: Title: "EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks" README: configs/efficientnet/README.md Code: - Version: v0.20.0 - URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.0/mmcls/models/backbones/efficientnet.py + Version: v0.20.1 + URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.1/mmcls/models/backbones/efficientnet.py Models: - Name: efficientnet-b0_3rdparty_8xb32_in1k diff --git a/configs/hrnet/metafile.yml b/configs/hrnet/metafile.yml index a9526148..64fe1422 100644 --- a/configs/hrnet/metafile.yml +++ b/configs/hrnet/metafile.yml @@ -12,8 +12,8 @@ Collections: Title: "Deep High-Resolution Representation Learning for Visual Recognition" README: configs/hrnet/README.md Code: - URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.0/mmcls/models/backbones/hrnet.py - Version: v0.20.0 + URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.1/mmcls/models/backbones/hrnet.py + Version: v0.20.1 Models: - Name: hrnet-w18_3rdparty_8xb32_in1k diff --git a/configs/twins/metafile.yml b/configs/twins/metafile.yml index e3cf3398..f8a7d819 100644 --- a/configs/twins/metafile.yml +++ b/configs/twins/metafile.yml @@ -12,8 +12,8 @@ Collections: Title: "Twins: Revisiting the Design of Spatial Attention in Vision Transformers" README: configs/twins/README.md Code: - URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.0/mmcls/models/backbones/twins.py - Version: v0.20.0 + URL: https://github.com/open-mmlab/mmclassification/blob/v0.20.1/mmcls/models/backbones/twins.py + Version: v0.20.1 Models: - Name: twins-pcpvt-small_3rdparty_8xb128_in1k diff --git a/docker/serve/Dockerfile b/docker/serve/Dockerfile index eef06051..0b6e64e6 100644 --- a/docker/serve/Dockerfile +++ b/docker/serve/Dockerfile @@ -4,7 +4,7 @@ ARG CUDNN="7" FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel ARG MMCV="1.4.2" -ARG MMCLS="0.20.0" +ARG MMCLS="0.20.1" ENV PYTHONUNBUFFERED TRUE diff --git a/docs/en/changelog.md b/docs/en/changelog.md index 182880a8..870c730a 100644 --- a/docs/en/changelog.md +++ b/docs/en/changelog.md @@ -1,5 +1,11 @@ # Changelog +## v0.20.1(07/02/2022) + +### Bug Fixes + +- Fix the MMCV dependency version. + ## v0.20.0(30/01/2022) ### Highlights diff --git a/docs/en/compatibility.md b/docs/en/compatibility.md new file mode 100644 index 00000000..1affb8e7 --- /dev/null +++ b/docs/en/compatibility.md @@ -0,0 +1,8 @@ +# Compatibility of MMClassification 0.x + +## MMClassification 0.20.1 + +### MMCV compatibility + +In Twins backbone, we use the `PatchEmbed` module of MMCV, and this module is added after MMCV 1.4.2. +Therefore, we need to update the mmcv version to 1.4.2. diff --git a/docs/en/install.md b/docs/en/install.md index 079b85f6..b0347393 100644 --- a/docs/en/install.md +++ b/docs/en/install.md @@ -11,7 +11,7 @@ The compatible MMClassification and MMCV versions are as below. Please install t | MMClassification version | MMCV version | |:------------------------:|:---------------------:| | dev | mmcv>=1.4.4, <=1.5.0 | -| 0.20.0 (master) | mmcv>=1.3.16, <=1.5.0 | +| 0.20.1 (master) | mmcv>=1.4.2, <=1.5.0 | | 0.19.0 | mmcv>=1.3.16, <=1.5.0 | | 0.18.0 | mmcv>=1.3.16, <=1.5.0 | | 0.17.0 | mmcv>=1.3.8, <=1.5.0 | diff --git a/docs/zh_CN/install.md b/docs/zh_CN/install.md index 3380fb61..9db292d5 100644 --- a/docs/zh_CN/install.md +++ b/docs/zh_CN/install.md @@ -11,7 +11,7 @@ MMClassification 和 MMCV 的适配关系如下,请安装正确版本的 MMCV | MMClassification 版本 | MMCV 版本 | |:---------------------:|:---------------------:| | dev | mmcv>=1.4.4, <=1.5.0 | -| 0.20.0 (master)| mmcv>=1.3.16, <=1.5.0 | +| 0.20.1 (master)| mmcv>=1.4.2, <=1.5.0 | | 0.19.0 | mmcv>=1.3.16, <=1.5.0 | | 0.18.0 | mmcv>=1.3.16, <=1.5.0 | | 0.17.0 | mmcv>=1.3.8, <=1.5.0 | diff --git a/mmcls/__init__.py b/mmcls/__init__.py index c05d4491..23b6e821 100644 --- a/mmcls/__init__.py +++ b/mmcls/__init__.py @@ -47,7 +47,7 @@ def digit_version(version_str: str, length: int = 4): return tuple(release) -mmcv_minimum_version = '1.3.16' +mmcv_minimum_version = '1.4.2' mmcv_maximum_version = '1.5.0' mmcv_version = digit_version(mmcv.__version__) diff --git a/mmcls/version.py b/mmcls/version.py index 5f1c47e4..1fe34efe 100644 --- a/mmcls/version.py +++ b/mmcls/version.py @@ -1,6 +1,6 @@ # Copyright (c) OpenMMLab. All rights reserved -__version__ = '0.20.0' +__version__ = '0.20.1' def parse_version_info(version_str): diff --git a/requirements/mminstall.txt b/requirements/mminstall.txt index 904461aa..bc663d15 100644 --- a/requirements/mminstall.txt +++ b/requirements/mminstall.txt @@ -1 +1 @@ -mmcv-full>=1.3.16,<=1.5.0 +mmcv-full>=1.4.2,<=1.5.0 diff --git a/requirements/readthedocs.txt b/requirements/readthedocs.txt index 65aa36bc..3b346257 100644 --- a/requirements/readthedocs.txt +++ b/requirements/readthedocs.txt @@ -1,3 +1,3 @@ -mmcv>=1.3.16 +mmcv>=1.4.2 torch torchvision