mmcv/tests/test_utils
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
..
test_config.py [Feature] Add windows CI (#1023) 2021-08-24 10:07:31 +08:00
test_env.py
test_logging.py [Feature] Add windows CI (#1023) 2021-08-24 10:07:31 +08:00
test_misc.py [Feature] Loading objects from different backends and dumping objects to different backends (#1330) 2021-10-23 20:51:44 +08:00
test_parrots_jit.py Remove pytest from the runtime dependencies (#763) 2020-12-28 13:23:48 +08:00
test_path.py Add case case_sensitive in scandir (#1389) 2021-10-20 14:34:34 +08:00
test_progressbar.py [Docs] Add header for files (#1181) 2021-08-08 22:10:55 +08:00
test_registry.py [Bug] fix raise error bug in registering multiple names (#949) 2021-04-25 21:47:50 +08:00
test_testing.py Add test util for checking stand-alone python scripts (#1007) 2021-05-10 22:15:35 +08:00
test_timer.py [Docs] Add header for files (#1181) 2021-08-08 22:10:55 +08:00
test_trace.py [Improvement] Improve digit_version & use it for version_checking (#1185) 2021-07-23 21:03:33 +08:00
test_version_utils.py [Improvement] Improve digit_version & use it for version_checking (#1185) 2021-07-23 21:03:33 +08:00