mmcv/tests
Zaida Zhou 5b5b47fc87
[Feature] Loading objects from different backends and dumping objects to different backends (#1330)
* [Feature] Choose storage backend by the prefix of filepath

* refactor FileClient and add unittest

* support loading from different backends

* polish docstring

* fix unittet

* rename attribute str_like_obj to is_str_like_obj

* add infer_client method

* add check_exist method

* rename var client to file_client

* polish docstring

* add join_paths method

* remove join_paths and add _format_path

* enhance unittest

* refactor unittest

* singleton pattern

* fix test_clientio.py

* deprecate CephBackend

* enhance docstring

* refactor unittest for petrel

* refactor unittest for disk backend

* update io.md

* add concat_paths method

* improve docstring

* improve docstring

* add isdir and copyfile for file backend

* delete copyfile and add get_local_path

* remove isdir method of petrel

* fix typo

* add comment and polish docstring

* polish docstring

* rename _path_mapping to _map_path

* polish docstring and fix typo

* refactor get_local_path

* add list_dir_or_file for FileClient

* add list_dir_or_file for PetrelBackend

* fix windows ci

* Add return docstring

* polish docstring

* fix typo

* fix typo

* deprecate the conversion from Path to str

* add docs for loading checkpoints with FileClient

* refactor map_path

* add _ensure_methods to ensure methods have been implemented

* fix list_dir_or_file

* rename _ensure_method_implemented to has_method
2021-10-23 20:51:44 +08:00
..
data [Feature] Add voxel ops from mmdet3d (#1381) 2021-10-21 11:08:11 +08:00
test_cnn [Feature] Add revert_sync_batchnorm (#1253) 2021-09-08 10:59:39 +08:00
test_image Add code spell hook to pre-commit and fix typos (#1384) 2021-10-04 20:13:54 +08:00
test_ops [Feature] Add group points ops from mmdet3d (#1415) 2021-10-23 14:01:31 +08:00
test_runner Add code spell hook to pre-commit and fix typos (#1384) 2021-10-04 20:13:54 +08:00
test_utils [Feature] Loading objects from different backends and dumping objects to different backends (#1330) 2021-10-23 20:51:44 +08:00
test_video [Features] Load optical flow data from bytes (#1362) 2021-09-23 21:25:59 +08:00
test_arraymisc.py
test_fileclient.py [Feature] Loading objects from different backends and dumping objects to different backends (#1330) 2021-10-23 20:51:44 +08:00
test_fileio.py [Feature] Loading objects from different backends and dumping objects to different backends (#1330) 2021-10-23 20:51:44 +08:00
test_load_model_zoo.py
test_parallel.py Add code spell hook to pre-commit and fix typos (#1384) 2021-10-04 20:13:54 +08:00
test_visualization.py