We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f05300 commit 939bb56Copy full SHA for 939bb56
components/nn/include/maix_nn_yolo11.hpp
@@ -384,7 +384,7 @@ namespace maix::nn
384
nn::LayerInfo &item = outputs[i];
385
if(item.shape.size() == 4)
386
{
387
- if(item.shape[1] == 4 && item.shape[2] == _anchor_num && item.shape[3] == 1) // hwc
+ if(item.shape[1] == _anchor_num && item.shape[2] == (int)labels.size() && item.shape[3] == 1) // hwc
388
389
_out_chw = false;
390
_out_idxes.dfl = i;
0 commit comments