mmdeploy/demo
lvhan028 8062e4e41d
[Enhancement] remove MMDEPLOY_BUILD_SDK_CXX_API option (#1688) (#1692)
* remove MMDEPLOY_BUILD_SDK_CXX_API option

* update

* update
(cherry picked from commit b101a4af65)
2023-01-31 14:25:22 +08:00
..
csharp Cherry-pick PR 1366, 1370, 1460, 1577, 1598, 1601, 1612, 1626 to dev-1.x (#1635) 2023-01-17 18:52:58 +08:00
csrc [Enhancement] remove MMDEPLOY_BUILD_SDK_CXX_API option (#1688) (#1692) 2023-01-31 14:25:22 +08:00
java
python [Feature] Pose tracker C/C++/Python API&demos (#1663) 2023-01-31 12:07:40 +08:00
resources
tutorials [Enhancement]: add md link check github action (#1320) 2022-12-08 16:13:51 +08:00
README.md
demo_rewrite.py [Refactor] Refactor rewriter context for MMRazor (#1483) 2022-12-13 19:03:56 +08:00

README.md

Demo

We provide a demo showing what our mmdeploy can do for general model deployment.

In demo_rewrite.py, a resnet18 model from torchvision is rewritten through mmdeploy tool. In our rewritten model, the forward function of resnet gets modified to only down sample the original input to 4x. Original onnx model of resnet18 and its rewritten are visualized through netron.

Prerequisite

Before we run demp_rewrite.py, we need to install pyppeteer through:

pip install pyppeteer

Demo results

The original resnet18 model and its modified one are visualized as follows. The left model is the original resnet18 while the right model is exported after rewritten.

Original resnet18 Rewritten model