You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

version.py 529 B

2 years ago
12345678910111213141516171819
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. __version__ = '2.18.0'
  3. short_version = __version__
  4. def parse_version_info(version_str):
  5. version_info = []
  6. for x in version_str.split('.'):
  7. if x.isdigit():
  8. version_info.append(int(x))
  9. elif x.find('rc') != -1:
  10. patch_version = x.split('rc')
  11. version_info.append(int(patch_version[0]))
  12. version_info.append(f'rc{patch_version[1]}')
  13. return tuple(version_info)
  14. version_info = parse_version_info(__version__)

No Description

Contributors (3)