mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[Model] Add Paddle3D smoke model (#1766)
* add smoke model * add 3d vis * update code * update doc * mv paddle3d from detection to perception * update result for velocity * update code for CI * add set input data for TRT backend * add serving support for smoke model * update code * update code * update code --------- Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
48
docs/api/vision_results/perception_result.md
Executable file
48
docs/api/vision_results/perception_result.md
Executable file
@@ -0,0 +1,48 @@
|
||||
English | [简体中文](detection_result_CN.md)
|
||||
# PerceptionResult target detection result
|
||||
|
||||
The PerceptionResult code is defined in `fastdeploy/vision/common/result.h`, which is used to indicate the detected 3D target: two-dimensional target frame, target frame length, width and height, target category and target confidence, target orientation angle and observation angle etc.
|
||||
|
||||
## C++ definition
|
||||
|
||||
```c++
|
||||
fastdeploy::vision::PerceptionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct PerceptionResult {
|
||||
std::vector<float> scores;
|
||||
std::vector<int32_t> label_ids;
|
||||
std::vector<std::array<float, 7>> boxes;
|
||||
std::vector<std::array<float, 3>> center;
|
||||
std::vector<float>observation_angle;
|
||||
std::vector<float>yaw_angle;
|
||||
std::vector<std::array<float, 3>>velocity;
|
||||
void Clear();
|
||||
std::string Str();
|
||||
};
|
||||
```
|
||||
|
||||
- **scores**: Member variable, indicating the confidence of all detected targets, `scores.size()` indicates the number of detected boxes
|
||||
- **label_ids**: Member variable, representing all detected target categories, the number of elements is consistent with `scores.size()`
|
||||
- **boxes**: Member variable, representing the coordinates of all detected target boxes, the number of elements is consistent with `scores.size()`, and each box represents xmin, ymin, xmax, ymax in turn with 7 float values , h, w, l, the coordinates of the upper left and lower right corners and the length, width and height of the 3D box
|
||||
- **center**: member variable, indicating the center point coordinates of all detected target frames, the number of elements is consistent with `scores.size()`, and each frame uses 3 float values to represent the center point coordinates of the frame in turn
|
||||
- **observation_angle**: Member variable, indicating the observation angle of the detected frame, and the number of elements is consistent with `scores.size()`
|
||||
- **yaw_angle**: Member variable, indicating the orientation angle of the detected frame, the number of elements is consistent with `scores.size()`
|
||||
- **velocity**: Member variable, indicating the velocity of the detected frame, the number of elements is consistent with `scores.size()`
|
||||
- **Clear()**: member function, used to clear the results stored in the structure
|
||||
- **Str()**: member function, output the information in the structure as a string (for Debug)
|
||||
|
||||
## Python definition
|
||||
|
||||
```python
|
||||
fastdeploy.vision.PerceptionResult
|
||||
```
|
||||
|
||||
- **scores**(list of float): Member variable, indicating the confidence of all detected targets, `scores.size()` indicates the number of detected frames
|
||||
- **label_ids**(list of int): Member variable, representing all detected target categories, the number of elements is consistent with `scores.size()`
|
||||
- **boxes**(list of list(float)): Member variable, indicating the coordinates of all detected target boxes, the number of elements is the same as `scores.size()`, and each box is in order of 7 float values Indicates xmin, ymin, xmax, ymax, h, w, l, that is, the coordinates of the upper left and lower right corners and the length, width and height of the 3D box
|
||||
- **center**(list of list(float)): Member variable, which represents the coordinates of the center points of all detected target frames, the number of elements is the same as `scores.size()`, and each frame is represented by 3 floats The values in turn represent the coordinates of the center point of the box
|
||||
- **observation_angle**: member variable, indicating the orientation angle of the detected frame, and the number of elements is consistent with `scores.size()`
|
||||
- **yaw_angle**: Member variable, indicating the orientation angle of the detected frame, the number of elements is consistent with `scores.size()`
|
||||
- **velocity**: Member variable, indicating the velocity of the detected frame, the number of elements is consistent with `scores.size()`
|
48
docs/api/vision_results/perception_result_CN.md
Executable file
48
docs/api/vision_results/perception_result_CN.md
Executable file
@@ -0,0 +1,48 @@
|
||||
简体中文 | [English](perception_result.md)
|
||||
# PerceptionResult 目标检测结果
|
||||
|
||||
PerceptionResult`fastdeploy/vision/common/result.h`中,用于表明检测出来的3D目标的:二维目标框、目标框长宽高、目标类别和目标置信度、目标朝向角和观测角等。
|
||||
|
||||
## C++ 定义
|
||||
|
||||
```c++
|
||||
fastdeploy::vision::PerceptionResult
|
||||
```
|
||||
|
||||
```c++
|
||||
struct PerceptionResult {
|
||||
std::vector<float> scores;
|
||||
std::vector<int32_t> label_ids;
|
||||
std::vector<std::array<float, 7>> boxes;
|
||||
std::vector<std::array<float, 3>> center;
|
||||
std::vector<float>observation_angle;
|
||||
std::vector<float>yaw_angle;
|
||||
std::vector<std::array<float, 3>>velocity;
|
||||
void Clear();
|
||||
std::string Str();
|
||||
};
|
||||
```
|
||||
|
||||
- **scores**: 成员变量,表示检测出来的所有目标置信度,`scores.size()`表示检测出来框的个数
|
||||
- **label_ids**: 成员变量,表示检测出来的所有目标类别,其元素个数与`scores.size()`一致
|
||||
- **boxes**: 成员变量,表示检测出来的所有目标框坐标,其元素个数与`scores.size()`一致,每个框以7个float数值依次表示xmin, ymin, xmax, ymax,h, w, l, 即左上角和右下角坐标以及3D框的长宽高
|
||||
- **center**: 成员变量,表示检测出来的所有目标框中心点坐标,其元素个数与`scores.size()`一致,每个框以3个float数值依次表示框中心点坐标
|
||||
- **observation_angle**: 成员变量,表示检测出来的框的观测角,其元素个数与`scores.size()`一致
|
||||
- **yaw_angle**: 成员变量,表示检测出来的框的朝向角,其元素个数与`scores.size()`一致
|
||||
- **velocity**: 成员变量,表示检测出来的框的速度,其元素个数与`scores.size()`一致
|
||||
- **Clear()**: 成员函数,用于清除结构体中存储的结果
|
||||
- **Str()**: 成员函数,将结构体中的信息以字符串形式输出(用于Debug)
|
||||
|
||||
## Python 定义
|
||||
|
||||
```python
|
||||
fastdeploy.vision.PerceptionResult
|
||||
```
|
||||
|
||||
- **scores**(list of float): 成员变量,表示检测出来的所有目标置信度,`scores.size()`表示检测出来框的个数
|
||||
- **label_ids**(list of int): 成员变量,表示检测出来的所有目标类别,其元素个数与`scores.size()`一致
|
||||
- **boxes**(list of list(float)): 成员变量,表示检测出来的所有目标框坐标,其元素个数与`scores.size()`一致,每个框以7个float数值依次表示xmin, ymin, xmax, ymax,h, w, l, 即左上角和右下角坐标以及3D框的长宽高
|
||||
- **center**(list of list(float)): 成员变量,表示检测出来的所有目标框中心点坐标,其元素个数与`scores.size()`一致,每个框以3个float数值依次表示框中心点坐标
|
||||
- **observation_angle**: 成员变量,表示检测出来的框的朝向角,其元素个数与`scores.size()`一致
|
||||
- **yaw_angle**: 成员变量,表示检测出来的框的朝向角,其元素个数与`scores.size()`一致
|
||||
- **velocity**: 成员变量,表示检测出来的框的速度,其元素个数与`scores.size()`一致
|
Reference in New Issue
Block a user