目前在做分割模型部署,
根据

for (int w = 0; w < width; ++w) {
float top_score = -1000000.0f;
int top_index = 0;
float *c_data = data + (width * h + w) * channel;
for (int c = 0; c < channel; c++) {
if (c_data[c] > top_score) {
top_score = c_data[c];
top_index = c;
}
}
perception->seg.seg[h * width + w] = top_index;
}
