mmdeploy/demo
lvhan028 f311cfd437 tell batch inference demos and single image inference demos apart (#986)
(cherry picked from commit 4c872a41c3)
2022-11-01 16:35:45 +08:00
..
csharp [Docs] Replace markdownlint with mdformat and configure myst-parser (#610) 2022-06-17 09:19:10 +08:00
csrc tell batch inference demos and single image inference demos apart (#986) 2022-11-01 16:35:45 +08:00
java Sync v0.7.0 to dev-1.x (#907) 2022-08-19 09:30:13 +08:00
python [Enhancement] Refactor SDK pipeline (#938) 2022-09-26 16:11:14 +08:00
resources update doc about codebase deployment (#1051) 2022-09-24 18:05:24 +08:00
tutorials 【Docs】Add ipython notebook tutorial (#234) 2022-04-27 20:04:56 +08:00
README.md [Docs] Replace markdownlint with mdformat and configure myst-parser (#610) 2022-06-17 09:19:10 +08:00
demo_rewrite.py Add a new pre-commit-hook to automatically add a copyright (#166) 2022-02-23 11:38:40 +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