-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactor] Refactor fileio #2543
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the modifications of projects
and add the version of mmcv and mmengine that backend_args
need.
mmseg/__init__.py
Outdated
f'MMEngine=={mmengine.__version__} is used but incompatible. ' \ | ||
f'Please install mmengine>={mmengine_min_version}, '\ | ||
f'<{mmengine_max_version}.' | ||
f'<={mmengine_max_version}.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f'<={mmengine_max_version}.' | |
f'<{mmengine_max_version}.' |
mmseg/__init__.py
Outdated
|
||
mmengine_min_version = digit_version(MMENGINE_MIN) | ||
mmengine_max_version = digit_version(MMENGINE_MAX) | ||
mmengine_version = digit_version(mmengine.__version__) | ||
|
||
assert (mmengine_min_version <= mmengine_version < mmengine_max_version), \ | ||
assert (mmengine_min_version <= mmengine_version <= mmengine_max_version), \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert (mmengine_min_version <= mmengine_version <= mmengine_max_version), \ | |
assert (mmengine_min_version <= mmengine_version < mmengine_max_version), \ |
Codecov ReportBase: 83.40% // Head: 83.35% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-1.x #2543 +/- ##
===========================================
- Coverage 83.40% 83.35% -0.06%
===========================================
Files 145 145
Lines 8510 8505 -5
Branches 1274 1273 -1
===========================================
- Hits 7098 7089 -9
- Misses 1198 1202 +4
Partials 214 214
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
docs/en/notes/faq.md
Outdated
@@ -4,37 +4,19 @@ We list some common troubles faced by many users and their corresponding solutio | |||
|
|||
## Installation | |||
|
|||
The compatible MMSegmentation and MMCV versions are as below. Please install the correct version of MMCV to avoid installation issues. | |||
The compatible MMSegmentation, MMCV and MMEngine versions are as below. Please install the correct version of MMCV to avoid installation issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compatible MMSegmentation, MMCV and MMEngine versions are as below. Please install the correct version of MMCV to avoid installation issues. | |
The compatible MMSegmentation, MMCV and MMEngine versions are as below. Please install the correct versions of them to avoid installation issues. |
docs/en/notes/faq.md
Outdated
| MMSegmentation version | MMCV version | MMEngine version | MMClassification (optional) version | MMDetection (optional) version | | ||
| :--------------------: | :----------------------------: | :---------------: | :---------------------------------: | :----------------------------: | | ||
| dev-1.x branch | mmcv >= 2.0.0rc4 | MMEngine >= 0.2.0 | mmcls>=1.0.0rc0 | mmdet>=3.0.0rc4, \<=3.0.0rc5> | | ||
| 1.x branch | mmcv >= 2.0.0rc4 | MMEngine >= 0.2.0 | mmcls>=1.0.0rc0 | mmdet>=3.0.0rc4, \<=3.0.0rc5> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 1.x branch | mmcv >= 2.0.0rc4 | MMEngine >= 0.2.0 | mmcls>=1.0.0rc0 | mmdet>=3.0.0rc4, \<=3.0.0rc5> | | |
| 1.x branch | mmcv == 2.0.0rc3 | MMEngine >= 0.1.0 | mmcls>=1.0.0rc0 | mmdet>=3.0.0rc4, \<=3.0.0rc5> | |
as 1.x branch updates when mmseg release, I suggest modifying 1.x branch dependency in bump pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as 1.x branch updates when mmseg release, I suggest modifying 1.x branch dependency in bump pr
get
mmseg/__init__.py
Outdated
MMCV_MAX = '2.1.0' | ||
MMENGINE_MIN = '0.1.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MMCV_MAX = '2.1.0' | |
MMENGINE_MIN = '0.1.0' | |
MMCV_MAX = '2.1.0' | |
MMENGINE_MIN = '0.2.0' |
requirements/mminstall.txt
Outdated
@@ -1,4 +1,4 @@ | |||
mmcls>=1.0.0rc0 | |||
mmcv==2.0.0rc3 | |||
mmcv>=2.0.0rc4 | |||
mmdet==3.0.0rc5 | |||
mmengine>=0.1.0,<1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmengine>=0.1.0,<1.0.0 | |
mmengine>=0.2.0,<1.0.0 |
* [Model offload] Add nice warning * Treat sequential and model offload differently. Sequential raises an error because the operation would fail with a cryptic warning later. * Forcibly move to cpu when offloading. * make style * one more fix * make fix-copies * up --------- Co-authored-by: Pedro Cuenca <[email protected]>
## Motivation Use the new fileio from mmengine open-mmlab/mmengine#533 ## Modification 1. Use `mmengine.fileio` to repalce FileClient in mmseg/datasets 2. Use `mmengine.fileio` to repalce FileClient in mmseg/datasets/transforms 3. Use `mmengine.fileio` to repalce FileClient in mmseg/visualization ## BC-breaking (Optional) we modify all the dataset configurations, so please use the latest config file.
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Use the new fileio from mmengine
open-mmlab/mmengine#533
Modification
mmengine.fileio
to repalce FileClient in mmseg/datasetsmmengine.fileio
to repalce FileClient in mmseg/datasets/transformsmmengine.fileio
to repalce FileClient in mmseg/visualizationBC-breaking (Optional)
TODO
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist