Files
FastDeploy/examples/vision/matting/modnet
DefTruth 9e09a55abb [docs] update win build docs with cmake-gui+vs2019 (#280)
* Delete redundant Chinese comments

* [docs] update win build docs with cmake-gui+vs2019

* [docs] update win build docs with cmake-gui+vs2019

* [examples] replace some cn comments with en

* [cmake] update FastDeploy.cmake.in

* [docs] update windows c++ sdk usage docs

* [cmake] update FastDeploy.cmake.in

* [docs] update windows sdk usage docs

Co-authored-by: Jason <jiangjiajun@baidu.com>
2022-09-26 19:25:12 +08:00
..

MODNet准备部署模型

导出ONNX模型

访问MODNet官方github库按照指引下载安装下载模型文件利用 onnx/export_onnx.py 得到onnx格式文件。

  • 导出onnx格式文件
    python -m onnx.export_onnx \
      --ckpt-path=pretrained/modnet_photographic_portrait_matting.ckpt \
      --output-path=pretrained/modnet_photographic_portrait_matting.onnx
    

下载预训练ONNX模型

为了方便开发者的测试下面提供了MODNet导出的各系列模型开发者可直接下载使用。下表中模型的精度来源于源官方库

模型 大小 精度
modnet_photographic 25MB -
modnet_webcam 25MB -
modnet_photographic_256 25MB -
modnet_webcam_256 25MB -
modnet_photographic_512 25MB -
modnet_webcam_512 25MB -
modnet_photographic_1024 25MB -
modnet_webcam_1024 25MB -

详细部署文档

版本说明