[Feature] Add BaseInferencer (#874)
* [Feature] Add BaseInferencer (#773) * Update BaseInferencer * Fix ci * Fix CI and rename iferencer to infer * Fix CI * Add renamed file * Add test file * Adjust interface sequence * refine preprocess * Update unit test Update unit test * Update unit test * Fix unit test * Fix as comment * Minor refine * Fix docstring and support load image from different backend * Support load collate_fn from downstream repos, refine dispatch * Minor refine * Fix lint * refine grammar * Remove FileClient * Refine docstring * add rich * Add list_models * Add list_models * Remove backend args * Minor refine * Fix typos in docs and type hints (#787) * [Fix] Add _inputs_to_list (#795) * Add preprocess inputs * Add type hint * update api/infer in index.rst * rename preprocess_inputs to _inputs_to_list * Fix doc format * Update infer.py Co-authored-by:Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * [Fix] Fix alias type (#801) * [Enhance] Support loading model config from checkpoint (#864) * first commit * [Enhance] Support build model from weight * minor refine * Fix type hint * refine comments * Update docstring * refine as comment * Add method * Refine docstring * Fix as comment * refine comments * Refine warning message * Fix unit test and refine comments * replace MODULE2PACKAGE to MODULE2PAKCAGE * Fix typo and syntax error in docstring Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Co-authored-by:
Tong Gao <gaotongxiao@gmail.com>
Showing
- docs/en/api/infer.rst 14 additions, 0 deletionsdocs/en/api/infer.rst
- docs/en/index.rst 1 addition, 0 deletionsdocs/en/index.rst
- docs/zh_cn/api/infer.rst 14 additions, 0 deletionsdocs/zh_cn/api/infer.rst
- docs/zh_cn/index.rst 1 addition, 0 deletionsdocs/zh_cn/index.rst
- mmengine/infer/__init__.py 4 additions, 0 deletionsmmengine/infer/__init__.py
- mmengine/infer/infer.py 648 additions, 0 deletionsmmengine/infer/infer.py
- mmengine/registry/registry.py 2 additions, 2 deletionsmmengine/registry/registry.py
- mmengine/testing/runner_test_case.py 1 addition, 1 deletionmmengine/testing/runner_test_case.py
- requirements/runtime.txt 1 addition, 0 deletionsrequirements/runtime.txt
- tests/test_infer/test_infer.py 221 additions, 0 deletionstests/test_infer/test_infer.py
Loading
Please register or sign in to comment