[Fix] Fix version (#209)
* fix version * add projects in openmmlab * minor fix * empty * add mmocr * empty * empty * fix lintingpull/220/head
parent
3affc481c8
commit
7d618e6606
|
@ -28,7 +28,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
python-version: [3.7]
|
||||
torch: [1.3.0, 1.5.0, 1.6.0]
|
||||
torch: [1.3.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0]
|
||||
include:
|
||||
- torch: 1.3.0
|
||||
torchvision: 0.4.2
|
||||
|
@ -42,6 +42,22 @@ jobs:
|
|||
- torch: 1.6.0
|
||||
torchvision: 0.7.0
|
||||
python-version: 3.8
|
||||
- torch: 1.7.0
|
||||
torchvision: 0.8.1
|
||||
- torch: 1.7.0
|
||||
torchvision: 0.8.1
|
||||
python-version: 3.6
|
||||
- torch: 1.7.0
|
||||
torchvision: 0.8.1
|
||||
python-version: 3.8
|
||||
- torch: 1.8.0
|
||||
torchvision: 0.9.0
|
||||
- torch: 1.8.0
|
||||
torchvision: 0.9.0
|
||||
python-version: 3.6
|
||||
- torch: 1.8.0
|
||||
torchvision: 0.9.0
|
||||
python-version: 3.8
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
13
README.md
13
README.md
|
@ -65,3 +65,16 @@ Please refer to [CONTRUBUTING.md](.github/CONTRIBUTING.md) for the contributing
|
|||
|
||||
MMClassification is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks.
|
||||
We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new classifiers.
|
||||
|
||||
## Projects in OpenMMLab
|
||||
|
||||
- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab foundational library for computer vision.
|
||||
- [MMClassification](https://github.com/open-mmlab/mmclassification): OpenMMLab image classification toolbox and benchmark.
|
||||
- [MMDetection](https://github.com/open-mmlab/mmdetection): OpenMMLab detection toolbox and benchmark.
|
||||
- [MMDetection3D](https://github.com/open-mmlab/mmdetection3d): OpenMMLab's next-generation platform for general 3D object detection.
|
||||
- [MMSegmentation](https://github.com/open-mmlab/mmsegmentation): OpenMMLab semantic segmentation toolbox and benchmark.
|
||||
- [MMAction2](https://github.com/open-mmlab/mmaction2): OpenMMLab's next-generation action understanding toolbox and benchmark.
|
||||
- [MMTracking](https://github.com/open-mmlab/mmtracking): OpenMMLab video perception toolbox and benchmark.
|
||||
- [MMPose](https://github.com/open-mmlab/mmpose): OpenMMLab pose estimation toolbox and benchmark.
|
||||
- [MMEditing](https://github.com/open-mmlab/mmediting): OpenMMLab image and video editing toolbox.
|
||||
- [MMOCR](https://github.com/open-mmlab/mmocr): OpenMMLab toolbox for text detection, recognition and understanding.
|
||||
|
|
|
@ -1,3 +1,28 @@
|
|||
import mmcv
|
||||
|
||||
from .version import __version__
|
||||
|
||||
|
||||
def digit_version(version_str):
|
||||
digit_version = []
|
||||
for x in version_str.split('.'):
|
||||
if x.isdigit():
|
||||
digit_version.append(int(x))
|
||||
elif x.find('rc') != -1:
|
||||
patch_version = x.split('rc')
|
||||
digit_version.append(int(patch_version[0]) - 1)
|
||||
digit_version.append(int(patch_version[1]))
|
||||
return digit_version
|
||||
|
||||
|
||||
mmcv_minimum_version = '1.3.0'
|
||||
mmcv_maximum_version = '1.5.0'
|
||||
mmcv_version = digit_version(mmcv.__version__)
|
||||
|
||||
|
||||
assert (mmcv_version >= digit_version(mmcv_minimum_version)
|
||||
and mmcv_version <= digit_version(mmcv_maximum_version)), \
|
||||
f'MMCV=={mmcv.__version__} is used but incompatible. ' \
|
||||
f'Please install mmcv>={mmcv_minimum_version}, <={mmcv_maximum_version}.'
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
|
|
@ -6,7 +6,7 @@ import torch.nn.functional as F
|
|||
|
||||
|
||||
class BaseCutMixLayer(object, metaclass=ABCMeta):
|
||||
"""Base class for CutMixLayer"""
|
||||
"""Base class for CutMixLayer."""
|
||||
|
||||
def __init__(self):
|
||||
super(BaseCutMixLayer, self).__init__()
|
||||
|
|
Loading…
Reference in New Issue