OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
529 B
19 lines
529 B
# Copyright (c) Open-MMLab. All rights reserved. |
|
|
|
__version__ = '2.6.0' |
|
short_version = __version__ |
|
|
|
|
|
def parse_version_info(version_str): |
|
version_info = [] |
|
for x in version_str.split('.'): |
|
if x.isdigit(): |
|
version_info.append(int(x)) |
|
elif x.find('rc') != -1: |
|
patch_version = x.split('rc') |
|
version_info.append(int(patch_version[0])) |
|
version_info.append(f'rc{patch_version[1]}') |
|
return tuple(version_info) |
|
|
|
|
|
version_info = parse_version_info(__version__)
|
|
|