Spaces:
Running
on
A10G
Running
on
A10G
Upload test.py
Browse files
test.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (c) OpenMMLab. All rights reserved.
|
2 |
+
import mmcv
|
3 |
+
import mmengine
|
4 |
+
from mmengine.utils import digit_version
|
5 |
+
|
6 |
+
from .version import __version__, version_info
|
7 |
+
|
8 |
+
mmcv_minimum_version = '2.0.0rc4'
|
9 |
+
mmcv_maximum_version = '2.2.1'
|
10 |
+
mmcv_version = digit_version(mmcv.__version__)
|
11 |
+
|
12 |
+
mmengine_minimum_version = '0.7.1'
|
13 |
+
mmengine_maximum_version = '1.0.0'
|
14 |
+
mmengine_version = digit_version(mmengine.__version__)
|
15 |
+
|
16 |
+
assert (mmcv_version >= digit_version(mmcv_minimum_version)
|
17 |
+
and mmcv_version < digit_version(mmcv_maximum_version)), \
|
18 |
+
f'MMCV=={mmcv.__version__} is used but incompatible. ' \
|
19 |
+
f'Please install mmcv>={mmcv_minimum_version}, <{mmcv_maximum_version}.'
|
20 |
+
|
21 |
+
assert (mmengine_version >= digit_version(mmengine_minimum_version)
|
22 |
+
and mmengine_version < digit_version(mmengine_maximum_version)), \
|
23 |
+
f'MMEngine=={mmengine.__version__} is used but incompatible. ' \
|
24 |
+
f'Please install mmengine>={mmengine_minimum_version}, ' \
|
25 |
+
f'<{mmengine_maximum_version}.'
|
26 |
+
|
27 |
+
__all__ = ['__version__', 'version_info', 'digit_version']
|