Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mmsegmentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Bartels
mmsegmentation
Commits
8ba80176
Unverified
Commit
8ba80176
authored
2 years ago
by
Miao Zheng
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Enhancement] version check codebase from openmmlab (#2006)
parent
ef111dff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mmseg/__init__.py
+11
-2
11 additions, 2 deletions
mmseg/__init__.py
requirements/mminstall.txt
+3
-2
3 additions, 2 deletions
requirements/mminstall.txt
requirements/runtime.txt
+1
-1
1 addition, 1 deletion
requirements/runtime.txt
with
15 additions
and
5 deletions
mmseg/__init__.py
+
11
−
2
View file @
8ba80176
...
...
@@ -2,12 +2,14 @@
import
warnings
import
mmcv
import
mmengine
from
packaging.version
import
parse
from
.version
import
__version__
,
version_info
MMCV_MIN
=
'
2.0.0rc0
'
MMCV_MAX
=
'
2.0.0
'
MMCV_MIN
=
'
2.0.0rc1
'
MMCV_MAX
=
'
2.1.0
'
MMENGINE_MIN
=
'
0.5.0
'
def
digit_version
(
version_str
:
str
,
length
:
int
=
4
):
...
...
@@ -59,4 +61,11 @@ 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
}
.
'
mmengine_min_version
=
digit_version
(
MMENGINE_MIN
)
mmengine_version
=
digit_version
(
mmengine
.
__version__
)
assert
(
mmengine_min_version
<=
mmengine_version
),
\
f
'
MMEngine==
{
mmengine
.
__version__
}
is used but incompatible.
'
\
f
'
Please install mmengine>=
{
mmengine_min_version
}
.
'
__all__
=
[
'
__version__
'
,
'
version_info
'
,
'
digit_version
'
]
This diff is collapsed.
Click to expand it.
requirements/mminstall.txt
+
3
−
2
View file @
8ba80176
mmcls>=0.20.1
mmcv-full>=2.0.0,<=2.0.0rc0
mmcls>=1.0.0rc0
mmcv>=2.0.0rc1,<2.1.0
mmengine>=0.5
This diff is collapsed.
Click to expand it.
requirements/runtime.txt
+
1
−
1
View file @
8ba80176
matplotlib
mmcls>=
0.20.1
mmcls>=
1.0.0rc0
numpy
packaging
prettytable
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment