* 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 --------- Co-authored-by: lindsayshuo <lindsayshuo@foxmail.com.com>
19 lines
484 B
C
19 lines
484 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
|
|
};
|
|
|
|
struct AffineMatrix {
|
|
float value[6];
|
|
};
|
|
|
|
const int bbox_element =
|
|
sizeof(AffineMatrix) / sizeof(float) + 1; // left, top, right, bottom, confidence, class, keepflag
|