[Enhancement] Deprecate file_client_args and use backend_args instead #1765
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade to use the new MMEngine interface. This upgrade requires
mmcv >= 2.0.0rc4
, which is already required by 1.0.0rc6.Motivation
Use the new interface of fileio from MMEngine which requires mmengine>=0.2.0.
Refer to open-mmlab/mmcv#2468, open-mmlab/mmcv#2539
mmcv<2.0.0rc4: need to set the file_client_args to indicate the backend, if the file_client_args is None, the default option will be disk backend.
mmcv>=2.0.0rc4 : The function in fileio from MMEngine will automatically deal with different backends according to the prefix of data_root, if parameter backend_args is None
Reference
open-mmlab/mmselfsup#662