mmdeploy/demo
RunningLeon 4bb9bc738c
bump version to v1.0.0 (#1960)
* change docs from 1.x to main

* bump version

* update readme status info and highlights

* revert version change

* fix dead links

* fix script

* fix docs

* fix building status

* fix md lint error

* upgrade to ubuntu20.04 for github ci

* Revert "upgrade to ubuntu20.04 for github ci"

This reverts commit 9c598f4857.

* update codebase md files

* upgrade to ubuntu20.04 for github ci

* fix

* fix requirements

* fix

* fix ci

* bump version

* fix

* fix pplnn torchscript

* fix building status

* fix ncnn

* fix

* remove circileci hold

* fix pytorch image
2023-04-06 12:07:42 +08:00
..
csharp bump version to v1.0.0 (#1960) 2023-04-06 12:07:42 +08:00
csrc cherry-pick #1855, #1806, #1798 2023-03-30 16:32:12 +08:00
java [Feature] Add Java APIs and demos for pose tracker, segmentor and rotated-object detector (#1795) 2023-03-08 14:39:39 +08:00
python [Refactor] Rename mmdeploy_python to mmdeploy_runtime (#1821) 2023-03-29 20:57:21 +08:00
resources
tutorials bump version to v1.0.0 (#1960) 2023-04-06 12:07:42 +08:00
README.md
demo_rewrite.py

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