Files
FastDeploy/examples/vision/detection/README.md
Jason 22ca63982b Refine code structure (#89)
* refine code structure

* refine code structure
2022-08-10 10:50:22 +08:00

1.4 KiB
Raw Blame History

视觉模型部署

本目录下提供了各类视觉模型的部署,主要涵盖以下任务类型

任务类型 说明 预测结果结构体
Detection 目标检测,输入图像,检测图像中物体位置,并返回检测框坐标及类别和置信度 DetectionResult
Segmentation 语义分割,输入图像,给出图像中每个像素的分类及置信度 SegmentationResult
Classification 图像分类,输入图像,给出图像的分类结果和置信度 ClassifyResult

FastDeploy API设计

视觉模型具有较有统一任务范式在设计API时包括C++/PythonFastDeploy将视觉模型的部署拆分为四个步骤

  • 模型加载
  • 图像预处理
  • 模型推理
  • 推理结果后处理

FastDeploy针对飞桨的视觉套件以及外部热门模型提供端到端的部署服务用户只需准备模型按以下步骤即可完成整个模型的部署

  • 加载模型
  • 调用predict接口