forked from open-mmlab/mmsegmentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto get version info and git hash (open-mmlab#55)
* Auto get version info and git hash * bump 0.5.1 and update doc * fixed docs * Add change log
- Loading branch information
Showing
12 changed files
with
88 additions
and
2,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,6 @@ venv.bak/ | |
# mypy | ||
.mypy_cache/ | ||
|
||
mmseg/version.py | ||
data | ||
.vscode | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Changelog | ||
|
||
### v0.5.1 (11/08/2020) | ||
**Highlights** | ||
- Support FP16 and more generalized OHEM | ||
**Bug Fixes** | ||
- Fixed Pascal VOC conversion script (#19) | ||
- Fixed OHEM weight assign bug (#54) | ||
- Fixed palette type when palette is not given (#27) | ||
**New Features** | ||
- Support FP16 (#21) | ||
- Generalized OHEM (#54) | ||
**Improvements** | ||
- Add load-from flag (#33) | ||
- Fixed training tricks doc about different learning rates of model (#26) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
from .version import __version__, short_version, version_info | ||
import mmcv | ||
|
||
__all__ = ['__version__', 'short_version', 'version_info'] | ||
from .version import __version__, version_info | ||
|
||
MMCV_MIN = '1.0.5' | ||
MMCV_MAX = '1.0.5' | ||
|
||
|
||
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_min_version = digit_version(MMCV_MIN) | ||
mmcv_max_version = digit_version(MMCV_MAX) | ||
mmcv_version = digit_version(mmcv.__version__) | ||
|
||
|
||
assert (mmcv_min_version <= mmcv_version <= mmcv_max_version), \ | ||
f'MMCV=={mmcv.__version__} is used but incompatible. ' \ | ||
f'Please install mmcv>={mmcv_min_version}, <={mmcv_max_version}.' | ||
|
||
__all__ = ['__version__', 'version_info'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) Open-MMLab. All rights reserved. | ||
|
||
__version__ = '0.5.1' | ||
|
||
|
||
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__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters