Image Segmentation
Transformers
PyTorch
upernet
Inference Endpoints
test2 / mmseg /version.py
mccaly's picture
Upload 660 files
b13b124
raw
history blame
502 Bytes
# Copyright (c) Open-MMLab. All rights reserved.
__version__ = '0.11.0'
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__)