* Add the generation of multi-class pose engines * Change grids in forwardGpu to one-dimensional arrays * Update README.md * Update types.h keypoints array with dynamic size based on kNumberOfPoints * yolov8_5u_det(YOLOv5u with the anchor-free, objectness-free split head structure based on YOLOv8 features) model * update * fix code style * yolov8_5u_det model download link * yolov8_5u_det model download link * Distinguish the numclass of pose and obb in config. h and add the Oriented Bounding Boxes (OBB) Estimation algorithm * fix code style --------- Co-authored-by: lindsayshuo <lindsayshuo@foxmail.com.com>
20 lines
540 B
C
20 lines
540 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];
|
|
float keypoints[kNumberOfPoints * 3]; // keypoints array with dynamic size based on kNumberOfPoints
|
|
float angle; // obb angle
|
|
};
|
|
|
|
struct AffineMatrix {
|
|
float value[6];
|
|
};
|
|
|
|
const int bbox_element =
|
|
sizeof(AffineMatrix) / sizeof(float) + 1; // left, top, right, bottom, confidence, class, keepflag
|