-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update coco ref * init_cfg for dbnet * initcfg for mask_rcnn * textsnake init_cfg * fix dbnet * panet initcfg * psenet initcfg * fcenet initcfg * drrg initcfg * add init_cfg to detectors * update maskrcnn config file to support mmdet * fix init_cfg of fce_head * crnn initcfg * init_weights in training * nrtr initcfg * robust_scanner initcfg * sar init_cfg * seg init_cfg * tps_crnn init_cfg * sdmgr initcfg * ner init_cfg * fix textsnake * sdmgr initcfg * move "pretrained" to "init_cfg" for config files * Moduleslist update * fix seg * ner init_cfg * fix base * fix encode decode recognizer * revert dbnet config * fix crnn * fix base.py * fix robust_scanner * fix panet * fix test * remove redundant init_weights() in fcehead * clean up * relex mmdet version in workflow * Add dependency version check * Update mmocr/models/textdet/dense_heads/pse_head.py Co-authored-by: Hongbin Sun <[email protected]> Co-authored-by: Hongbin Sun <[email protected]>
- Loading branch information
1 parent
884755d
commit 4f7270e
Showing
69 changed files
with
408 additions
and
444 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
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 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 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 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 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 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 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 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,40 @@ | ||
import mmcv | ||
import mmdet | ||
|
||
from .version import __version__, short_version | ||
|
||
|
||
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_minimum_version = '1.3.8' | ||
mmcv_maximum_version = '1.4.0' | ||
mmcv_version = digit_version(mmcv.__version__) | ||
|
||
assert (mmcv_version >= digit_version(mmcv_minimum_version) | ||
and mmcv_version <= digit_version(mmcv_maximum_version)), \ | ||
f'MMCV {mmcv.__version__} is incompatible with MMOCR {__version__}. ' \ | ||
f'Please use MMCV >= {mmcv_minimum_version}, ' \ | ||
f'<= {mmcv_maximum_version} instead.' | ||
|
||
mmdet_minimum_version = '2.13.0' | ||
mmdet_maximum_version = '2.20.0' | ||
mmdet_version = digit_version(mmdet.__version__) | ||
|
||
assert (mmdet_version >= digit_version(mmdet_minimum_version) | ||
and mmdet_version <= digit_version(mmdet_maximum_version)), \ | ||
f'MMDetection {mmdet.__version__} is incompatible ' \ | ||
f'with MMOCR {__version__}. ' \ | ||
f'Please use MMDetection >= {mmdet_minimum_version}, ' \ | ||
f'<= {mmdet_maximum_version} instead.' | ||
|
||
__all__ = ['__version__', 'short_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
Oops, something went wrong.