From 31446de9055ca6f803fb1a75dc3d65f12e6dd446 Mon Sep 17 00:00:00 2001 From: Yifan Zhou Date: Thu, 28 Oct 2021 14:33:40 +0800 Subject: [PATCH] [Doc]: MMEdit doc (#153) * Add doc * Remove spaces * sovle comments * Resolve comments --- docs/codebases/mmedit.md | 31 ++++++++++++++++++++++++++++++- docs_zh_CN/codebases/mmedit.md | 31 ++++++++++++++++++++++++++++++- 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/docs/codebases/mmedit.md b/docs/codebases/mmedit.md index 6ef59622c..f946ae135 100644 --- a/docs/codebases/mmedit.md +++ b/docs/codebases/mmedit.md @@ -1 +1,30 @@ -## MMEditing Support +# MMEditing Support + +[MMEditing](https://github.com/open-mmlab/mmediting) is an open-source image and video editing toolbox based on PyTorch. It is a part of the [OpenMMLab](https://openmmlab.com/) project. + +## MMEditing installation tutorial + +Please refer to [official installation guide](https://mmediting.readthedocs.io/en/latest/install.html#installation) to install the codebase. + +## List of MMEditing models supported by MMDeploy + +| Model | Model Config File (Example) | ONNX Runtime | TensorRT | NCNN | PPL | +| :----: | :----------------------------------------------------------: | :----------: | :------: | :---: | :---: | +| SRCNN | configs/restorers/srcnn/srcnn_x4k915_g1_1000k_div2k.py | Y | Y | N | Y | +| ESRGAN | configs/restorers/esrgan/esrgan_x4c64b23g32_g1_400k_div2k.py | Y | Y | N | Y | + +## MMEditing deployment task type + +| codebase | task | +| :------: | :--------------: | +| mmedit | super-resolution | + +## Reminder + +None + +## FAQs + +1. Why the precision of SRCNN running in TensorRT is lower than in PyTorch? + + SRCNN uses bicubic to upsample images. TensorRT doesn't support bicubic operation. Therefore, we replace this operation with bilinear, which may lower the precision. diff --git a/docs_zh_CN/codebases/mmedit.md b/docs_zh_CN/codebases/mmedit.md index 40f9cdb14..c2302ae6d 100644 --- a/docs_zh_CN/codebases/mmedit.md +++ b/docs_zh_CN/codebases/mmedit.md @@ -1 +1,30 @@ -## MMEditing 支持 +# MMEditing 支持 + +[MMEditing](https://github.com/open-mmlab/mmediting) 是一个基于 PyTorch 的开源图像视频编辑工具箱。它是 [OpenMMLab](https://openmmlab.com/) 项目的一部分。 + +## MMEditing 安装教程 + +请参考[官方安装指导](https://mmediting.readthedocs.io/en/latest/install.html#installation)进代码库的安装。 + +## MMDeploy 支持的 MMEditing 模型列表 + +| 模型 | 模型配置文件(示例) | ONNX Runtime | TensorRT | NCNN | PPL | +| :----: | :----------------------------------------------------------: | :----------: | :------: | :---: | :---: | +| SRCNN | configs/restorers/srcnn/srcnn_x4k915_g1_1000k_div2k.py | Y | Y | N | Y | +| ESRGAN | configs/restorers/esrgan/esrgan_x4c64b23g32_g1_400k_div2k.py | Y | Y | N | Y | + +## MMEditing 的部署任务类型 + +| codebase | task | +| :------: | :--------------: | +| mmedit | super-resolution | + +## 注意事项 + +无 + +## 常见问题解答 + +1. 为什么 SRCNN 模型在 TensorRT 上运行的精度低于在 PyTorch 上运行的精度? + + SRCNN 使用双三次插值(bicubic)来进行图像上采样。 TensorRT 不支持双三次差值操作。我们用双线性插值(bilinear)替换了该操作,这种替换会降低精度。