duan8/yolo11/include/types.h
mpj1234 4f79443dd2
Add the support of YOLO11' s det/cls/seg/pose in TensorRT8. (#1584)
* Add the support of YOLO11' s det/cls/seg/pose in TensorRT8.

* add train code link
2024-10-11 16:25:07 +08:00

19 lines
423 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[51]; // 17*3 keypoints
};
struct AffineMatrix {
float value[6];
};
const int bbox_element =
sizeof(AffineMatrix) / sizeof(float) + 1; // left, top, right, bottom, confidence, class, keepflag