Skip to content

Commit 3a785f1

Browse files
grimoireSingleZombieRunningLeonVVssssskAllentDan
authoredNov 25, 2021
[Refactor] Refactor codebase (open-mmlab#220)
* [WIP] Refactor v2.0 (open-mmlab#163) * Refactor backend wrapper * Refactor mmdet.inference * Fix * merge * refactor utils * Use deployer and deploy_model to manage pipeline * Resolve comments * Add a real inference api function * rename wrappers * Set execute to private method * Rename deployer deploy_model * Refactor task * remove type hint * lint * Resolve comments * resolve comments * lint * docstring * [Fix]: Fix bugs in details in refactor branch (open-mmlab#192) * [WIP] Refactor v2.0 (open-mmlab#163) * Refactor backend wrapper * Refactor mmdet.inference * Fix * merge * refactor utils * Use deployer and deploy_model to manage pipeline * Resolve comments * Add a real inference api function * rename wrappers * Set execute to private method * Rename deployer deploy_model * Refactor task * remove type hint * lint * Resolve comments * resolve comments * lint * docstring * Fix errors * lint * resolve comments * fix bugs * conflict * lint and typo * Resolve comment * refactor mmseg (open-mmlab#201) * support mmseg * fix docstring * fix docstring * [Refactor]: Get the count of backend files (open-mmlab#202) * Fix backend files * resolve comments * lint * Fix ncnn * [Refactor]: Refactor folders of mmdet (open-mmlab#200) * Move folders * lint * test object detection model * lint * reset changes * fix openvino * resolve comments * __init__.py * Fix path * [Refactor]: move mmseg (open-mmlab#206) * [Refactor]: Refactor mmedit (open-mmlab#205) * feature mmedit * edit2.0 * edit * refactor mmedit * fix __init__.py * fix __init__ * fix formai * fix comment * fix comment * Fix wrong func_name of ConvFCBBoxHead (open-mmlab#209) * [Refactor]: Refactor mmdet unit test (open-mmlab#207) * Move folders * lint * test object detection model * lint * WIP * remove print * finish unit test * Fix tests * resolve comments * Add mask test * lint * resolve comments * Refine cfg file * Move files * add files * Fix path * [Unittest]: Refine the unit tests in mmdet open-mmlab#214 * [Refactor] refactor mmocr to mmdeploy/codebase (open-mmlab#213) * refactor mmocr to mmdeploy/codebase * fix docstring of show_result * fix docstring of visualize * refine docstring * replace print with logging * refince codes * resolve comments * resolve comments * [Refactor]: mmseg tests (open-mmlab#210) * refactor mmseg tests * rename test_codebase * update * add model.py * fix * [Refactor] Refactor mmcls and the package (open-mmlab#217) * refactor mmcls * fix yapf * fix isort * refactor-mmcls-package * fix print to logging * fix docstrings according to others comments * fix comments * fix comments * fix allentdans comment in pr215 * remove mmocr init * [Refactor] Refactor mmedit tests (open-mmlab#212) * feature mmedit * edit2.0 * edit * refactor mmedit * fix __init__.py * fix __init__ * fix formai * fix comment * fix comment * buff * edit test and code refactor * refactor dir * refactor tests/mmedit * fix docstring * add test coverage * fix lint * fix comment * fix comment * Update typehint (open-mmlab#216) * update type hint * update docstring * update * remove file * fix ppl * Refine get_predefined_partition_cfg * fix tensorrt version > 8 * move parse_cuda_device_id to device.py * Fix cascade * onnx2ncnn docstring Co-authored-by: Yifan Zhou <singlezombie@163.com> Co-authored-by: RunningLeon <maningsheng@sensetime.com> Co-authored-by: VVsssssk <88368822+VVsssssk@users.noreply.github.com> Co-authored-by: AllentDan <41138331+AllentDan@users.noreply.github.com> Co-authored-by: hanrui1sensetime <83800577+hanrui1sensetime@users.noreply.github.com>
1 parent d742b42 commit 3a785f1

File tree

220 files changed

+6698
-5837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+6698
-5837
lines changed
 

‎backend_ops/ncnn/pyncnn_ext/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ pybind11_add_module(ncnn_ext ncnn_ext.cpp)
1111
target_link_libraries(ncnn_ext PUBLIC ncnn ${SHARED_TARGET})
1212
set_target_properties(
1313
ncnn_ext PROPERTIES LIBRARY_OUTPUT_DIRECTORY
14-
${CMAKE_SOURCE_DIR}/mmdeploy/apis/ncnn)
14+
${CMAKE_SOURCE_DIR}/mmdeploy/backend/ncnn)

‎mmdeploy/__init__.py

-25
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,3 @@
77
importlib.import_module('mmdeploy.mmcv')
88
else:
99
logging.debug('mmcv is not installed.')
10-
11-
if importlib.util.find_spec('mmcls'):
12-
importlib.import_module('mmdeploy.mmcls')
13-
else:
14-
logging.debug('mmcls is not installed.')
15-
16-
if importlib.util.find_spec('mmdet'):
17-
importlib.import_module('mmdeploy.mmdet')
18-
else:
19-
logging.debug('mmdet is not installed.')
20-
21-
if importlib.util.find_spec('mmseg'):
22-
importlib.import_module('mmdeploy.mmseg')
23-
else:
24-
logging.debug('mmseg is not installed.')
25-
26-
if importlib.util.find_spec('mmocr'):
27-
importlib.import_module('mmdeploy.mmocr')
28-
else:
29-
logging.debug('mmocr is not installed.')
30-
31-
if importlib.util.find_spec('mmedit'):
32-
importlib.import_module('mmdeploy.mmedit')
33-
else:
34-
logging.debug('mmedit is not installed.')

0 commit comments

Comments
 (0)