[Enhancement] Support get sub dataset and rename method and variable. (#145)
* add get_subset method, add comment, rename variable * add unit test * Please mypy * Fix as comment, support negative index, and fix index access error * add and refine docstring, handle indices=0 * handle indices=0 * add empty list indices test * rename in_meta in docstring and comments to in_metainfo * clean meta nameing * Fix negative indices error * test empty list of get_subset * fix comments and docstring * add unit test * Fix as comment * Fix as comment * add docstring to mention wrapped dataset should not inherit from Basedataset * Fix wrapped dataset docstring * Fix wrapped dataset docstring * Fix method name, docstring, and comments * Fix comments * Fix comments * Fix comments
Showing
- mmengine/dataset/base_dataset.py 381 additions, 120 deletionsmmengine/dataset/base_dataset.py
- mmengine/dataset/dataset_wrapper.py 103 additions, 17 deletionsmmengine/dataset/dataset_wrapper.py
- tests/data/annotations/dummy_annotation.json 20 additions, 0 deletionstests/data/annotations/dummy_annotation.json
- tests/test_data/test_base_dataset.py 310 additions, 187 deletionstests/test_data/test_base_dataset.py
Loading
Please register or sign in to comment