* v8_seg * fix code style * fix code style * [优化代码风格] * readme中增加yolov8_seg分割的使用 * 更新readme * 更新readme * [fix python infer bug] * Update README.md * Update README.md --------- Co-authored-by: Wang Xinyu <shaywxy@gmail.com>
17 lines
363 B
C
17 lines
363 B
C
#pragma once
|
|
#include "config.h"
|
|
|
|
struct alignas(float) Detection {
|
|
//center_x center_y w h
|
|
float bbox[4];
|
|
float conf; // bbox_conf * cls_conf
|
|
float class_id;
|
|
float mask[32];
|
|
};
|
|
|
|
struct AffineMatrix {
|
|
float value[6];
|
|
};
|
|
|
|
const int bbox_element = sizeof(AffineMatrix) / sizeof(float)+1; // left, top, right, bottom, confidence, class, keepflag
|