mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-16 13:41:30 +08:00
Update by comments
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
[English](./vision_results_en.md) | 简体中文
|
||||
|
||||
# 视觉模型预测结果说明
|
||||
|
||||
## ClassifyResult 图像分类结果
|
||||
@@ -6,7 +8,9 @@ ClassifyResult代码定义在`fastdeploy/vision/common/result.h`中,用于表
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::ClassifyResult`
|
||||
```c++
|
||||
fastdeploy::vision::ClassifyResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct ClassifyResult {
|
||||
@@ -28,7 +32,9 @@ SegmentationResult代码定义在`fastdeploy/vision/common/result.h`中,用于
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::SegmentationResult`
|
||||
```c++
|
||||
fastdeploy::vision::SegmentationResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct SegmentationResult {
|
||||
@@ -102,7 +108,9 @@ FaceAlignmentResult 代码定义在`fastdeploy/vision/common/result.h`中,用
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::FaceAlignmentResult`
|
||||
```c++
|
||||
fastdeploy::vision::FaceAlignmentResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct FaceAlignmentResult {
|
||||
@@ -122,7 +130,9 @@ KeyPointDetectionResult 代码定义在`fastdeploy/vision/common/result.h`中,
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::KeyPointDetectionResult`
|
||||
```c++
|
||||
fastdeploy::vision::KeyPointDetectionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct KeyPointDetectionResult {
|
||||
@@ -152,7 +162,9 @@ struct KeyPointDetectionResult {
|
||||
FaceRecognitionResult 代码定义在`fastdeploy/vision/common/result.h`中,用于表明人脸识别模型对图像特征的embedding。
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::FaceRecognitionResult`
|
||||
```c++
|
||||
fastdeploy::vision::FaceRecognitionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct FaceRecognitionResult {
|
||||
@@ -174,7 +186,9 @@ MattingResult 代码定义在`fastdeploy/vision/common/result.h`中,用于表
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::MattingResult`
|
||||
```c++
|
||||
fastdeploy::vision::MattingResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct MattingResult {
|
||||
@@ -232,7 +246,9 @@ FaceDetectionResult 代码定义在`fastdeploy/vision/common/result.h`中,用
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::FaceDetectionResult`
|
||||
```c++
|
||||
fastdeploy::vision::FaceDetectionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct FaceDetectionResult {
|
||||
@@ -258,7 +274,9 @@ HeadPoseResult 代码定义在`fastdeploy/vision/common/result.h`中,用于表
|
||||
|
||||
### C++ 定义
|
||||
|
||||
`fastdeploy::vision::HeadPoseResult`
|
||||
```c++
|
||||
fastdeploy::vision::HeadPoseResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct HeadPoseResult {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# Description of Vision Results
|
||||
English | [简体中文](./vision_results_cn.md)
|
||||
|
||||
本文档的中文版本参考[视觉模型预测结果说明](./vision_results_cn.md)
|
||||
# Description of Vision Results
|
||||
|
||||
## Image Classification Result
|
||||
|
||||
@@ -8,7 +8,9 @@ The ClassifyResult code is defined in `fastdeploy/vision/common/result.h`, and i
|
||||
|
||||
### C++ Definition
|
||||
|
||||
`fastdeploy::vision::ClassifyResult`
|
||||
```c++
|
||||
fastdeploy::vision::ClassifyResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct ClassifyResult {
|
||||
@@ -31,7 +33,9 @@ The SegmentationResult code is defined in `fastdeploy/vision/common/result.h`, i
|
||||
|
||||
### C++ Definition
|
||||
|
||||
``fastdeploy::vision::SegmentationResult``
|
||||
```c++
|
||||
fastdeploy::vision::SegmentationResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct SegmentationResult {
|
||||
@@ -104,7 +108,9 @@ The FaceDetectionResult code is defined in `fastdeploy/vision/common/result.h`,
|
||||
|
||||
### C++ Definition
|
||||
|
||||
``fastdeploy::vision::FaceDetectionResult``
|
||||
```c++
|
||||
fastdeploy::vision::FaceDetectionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct FaceDetectionResult {
|
||||
@@ -131,7 +137,9 @@ The KeyPointDetectionResult code is defined in `fastdeploy/vision/common/result.
|
||||
|
||||
### C++ Definition
|
||||
|
||||
``fastdeploy::vision::KeyPointDetectionResult``
|
||||
```c++
|
||||
fastdeploy::vision::KeyPointDetectionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct KeyPointDetectionResult {
|
||||
@@ -161,7 +169,9 @@ struct KeyPointDetectionResult {
|
||||
The FaceRecognitionResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate the image features embedding in the face recognition model.
|
||||
### C++ Definition
|
||||
|
||||
`fastdeploy::vision::FaceRecognitionResult`
|
||||
```c++
|
||||
fastdeploy::vision::FaceRecognitionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct FaceRecognitionResult {
|
||||
@@ -180,8 +190,9 @@ struct FaceRecognitionResult {
|
||||
The MattingResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate the predicted value of alpha transparency predicted and the predicted foreground, etc.
|
||||
|
||||
### C++ Definition
|
||||
|
||||
``fastdeploy::vision::MattingResult`''
|
||||
```c++
|
||||
fastdeploy::vision::MattingResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct MattingResult {
|
||||
@@ -239,8 +250,9 @@ struct OCRResult {
|
||||
The FaceAlignmentResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate face landmarks.
|
||||
|
||||
### C++ Definition
|
||||
|
||||
`fastdeploy::vision::FaceAlignmentResult`
|
||||
```c++
|
||||
fastdeploy::vision::FaceAlignmentResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct FaceAlignmentResult {
|
||||
@@ -261,7 +273,9 @@ The HeadPoseResult code is defined in `fastdeploy/vision/common/result.h`, and i
|
||||
|
||||
### C++ Definition
|
||||
|
||||
``fastdeploy::vision::HeadPoseResult`''
|
||||
```c++
|
||||
fastdeploy::vision::HeadPoseResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct HeadPoseResult {
|
||||
|
@@ -126,7 +126,7 @@ python setup.py bdist_wheel
|
||||
## 五.昇腾部署时开启FlyCV
|
||||
[FlyCV](https://github.com/PaddlePaddle/FlyCV) 是一款高性能计算机图像处理库, 针对ARM架构做了很多优化, 相比其他图像处理库性能更为出色.
|
||||
FastDeploy现在已经集成FlyCV, 用户可以在支持的硬件平台上使用FlyCV, 实现模型端到端推理性能的加速.
|
||||
模型端到端推理中, 预处理和后处理阶段为CPU计算, 当用户使用ARM CPU + 昇腾的硬件平台时, 我们推荐用户使用FlyCV, 可以实现端到端的推理性能加速, 详见[FLyCV使用文档](../faq/boost_cv_by_flycv.md).
|
||||
模型端到端推理中, 预处理和后处理阶段为CPU计算, 当用户使用ARM CPU + 昇腾的硬件平台时, 我们推荐用户使用FlyCV, 可以实现端到端的推理性能加速, 详见[FlyCV使用文档](../faq/boost_cv_by_flycv.md).
|
||||
|
||||
|
||||
## 六.昇腾部署Demo参考
|
||||
|
@@ -4,7 +4,7 @@
|
||||
## 将视觉模型预测结果转换为numpy格式
|
||||
|
||||
这里以[SegmentationResult](./segmentation_result_CN.md)为例,展示如何抽取SegmentationResult中的label_map或者score_map来转为numpy格式,同时也可以利用已有数据new SegmentationResult结构体
|
||||
```
|
||||
``` python
|
||||
import fastdeploy as fd
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
Reference in New Issue
Block a user